PDA

View Full Version : php include path, Pear and server update



bartt
02-21-2010, 11:41 AM
New to hostmonster, but not my first rodeo..
I am attempting to setup a few forms that use Pear, so I need to update the include path used by php. I have added the default php.ini file via the php config page and edited the include path in php.ini. I uploaded a simple script file to display the php config (the usual phpinfo(); call). But it only displays the default include path, so I have to assume that the new php.ini file has not been read.
What does it take the kick the server in the butt and get it to read the ini file? Since I know I cannot restart the server myself, what must I do to get this going?
Thanks in advance.

Falcon1986
02-21-2010, 12:34 PM
Did you rename the auto-generated file to php.ini?
Did you configure PHP to use a single php.ini file or something else?
You can use .htaccess to specify where the php.ini file is located. I usually place these two lines in my .htaccess file (at the top, if possible):


# Force PHP5
AddHandler application/x-httpd-php5s .php

# Specify location of single php.ini
# Modify username to suit your scenario
SetEnv PHPRC /home/username/public_html/php.ini

bartt
02-21-2010, 12:50 PM
Thanks for the reply Falcon-
Yes to 1 and 2 did it thru the php config page, so hopefully it is correct.
Not sure on 3 isn't that also done via the php config page?

bartt
02-21-2010, 01:32 PM
Ok, I guess there is some timeout associated with this mechanism. I waited for about an hour and reloaded my test page. Now the path has the addition that I edited into the php.ini file.
What is the timeout period?
Having to wait is a real damper on productivity. Isn't there a faster way to update this and be able to test?