473,408 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

php.ini location

23
I recently purchased a hosting account on a godaddy server. I haven't made any changes. I need to find the php.ini file. I am running on a windows platform. Thanks in advance.
Oct 8 '07 #1
7 2270
Try this
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     echo phpinfo();
  3. ?>
  4.  
It will give you all kinds of info on your php configuration including the path to your ini file.
Oct 8 '07 #2
ak1dnar
1,584 Expert 1GB
But, on a shared server you won't be able to change the php.ini settings manually. because from your FTP account you can't access the php core files, but the public web root can be accessible from the FTP or Control panel. Try ini_set() but there may be limitations on this way too.
Oct 8 '07 #3
Atli
5,058 Expert 4TB
Hi.

Many hosts allow you to put your own php.ini file in your web root. You should check out it that is an option.
Oct 8 '07 #4
anon538
23
I tried the ini_set() method. I tried
Expand|Select|Wrap|Line Numbers
  1. ini_set("allow_url_fopen","On");
  2.  
It didn't return an error message, but after a simple fopen() test, I found no change. I then tried to upload a php.ini file via FireFTP. I initially uploaded it in highest directory that I could find, which seemed to be called "/". It returned the error message Access is denied. I then stuck the php.ini file in my public folder, but my other php files took no recognition of it. I finally tried the php info technique, which told me my php.ini file was in my C:/ drive, which makes no sense since I expected it to be somewhere on the server. I would really appreciate it if someone out there could give me any more advice.
Oct 21 '07 #5
pbmods
5,821 Expert 4TB
Heya, anon538.

Many web hosts disable allow_url_fopen, and there is no way to enable it if that's the case.

Try using cURL instead.
Oct 22 '07 #6
anon538
23
Well, after weeks of being stumped, I grudgingly called tech support. They told me that my problem was that I was on a Windows OS. I changed to a Linux operating system, uploaded my own php.ini file into the root directory via FTP, and presto fopen() worked. Thanks to everyone else for their replies.
Oct 24 '07 #7
pbmods
5,821 Expert 4TB
Heya, anon538.

Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)
Oct 24 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

26
by: Nige | last post by:
I'm a complete novice to JS. I want to insert the date and time into a document in the format: WB-MMDDHHmm Where: WB- is a fixed string prefix (the whole string is a reference number) MM...
5
by: spam_me_ not | last post by:
I already understand that one cannot disable a browser's forward and back functions. This is a situation where I have code working in Mozilla V1.6 and would like something similar for Opera and...
3
by: saiho.yuen | last post by:
Hi, Is anyone know what is the difference between Location.href and Window.location.href Thanks you very much:) Saiho
8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
3
by: Christian Hubinger | last post by:
Hi! I'm working on a page that uses javascript very much. My problem is now that i cannot redirect to another page in IE with window.location =<URL>; This command gets executed (proofed with...
4
by: tshad | last post by:
Can I set up multiple pages in the same Location tag? I thought I saw somewhere that I could. I tried the following, but it doesn't work. ***************************************************...
6
by: G*rd*n | last post by:
I have been using the HTTP "Location" reponse header to direct a symbolic request to a CGI program to an actual URL/file. For example, let us suppose the CGI program's table indicates xyz ->...
1
by: Marc the Demi-Programmer | last post by:
I am overriding WncProc to make sure my form's location stays within specified parameters. Basically, it has to stay at the top of the screen and not be off to either of the sides. All that works...
6
by: Marcolino | last post by:
Hi all, I have a simple problem but I don't know which is the best way to solve it. I need to savo into a table into access DB the location and the size of a form. Is there a way to save...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I placed a button on a form menustrip for the purpose of causing the horizontal scrollbar of my form to appear so that I can access controls outside of the form's current view (the controls are...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.