View Full Version : Changing PHP's include_path ?
Hi there :)
Is it possible somehow to change the include path of my website ?
I need to add a directory called "flashservices" placed in my "/public_html/" folder to the path...
The documentation of the script I am trying to install doesn't give any details about how to do that, except saying I can do it by:
including modifying the php.ini
or
setting the include_path in my httpd.conf file
Is it possible to do it, and if yes, how so ?
Many thanks in advance
SnakEyez
01-24-2004, 11:42 PM
Which path does it have to be set to?
More than likely HR won't modify an entire servers php settings unless they really see it necessary. Maybe if you post a link to the script people here might be able to help you find an alternative method that wouldn't involve messing with the php.ini file.
Thanks for the quick reply!
I'm trying to install AMFPHP (alternative for flash remoting)
http://www.amfphp.org/?g=documentation
I need to add a directory called "flashservices" into the path...
If you look at the link below it gives a short explanation of what to do but I am no PHP expert, so I don't really know what to do...
If you could help that would be great !!
Try a Google search on:
php include path .htaccess (http://www.google.com/search?sourceid=navclient&q=php+include+path+%2Ehtaccess) .
One thing that looked interesting was to add something like
php_value include_path '/some/path/to/includes' to the .htaccess file.
Viper007Bond
01-25-2004, 07:16 AM
Or if worst comes to worst, find search the document for all "include(" and edit the paths.
y6y6y6
01-26-2004, 11:11 AM
The include path is set in the php.ini file, which you won't have access to on a shared server. You can override the php.ini values for each script using the ini_set() function, but you'd need to include something like - ini_set('include_path', '.:/usr/lib/php:/usr/local/lib/php:/home/amfphp/public_html/flashservices'); - in each file. Maybe easier to just edit the include lines.
It sounds odd that the code would require a change like this. php doesn't have any trouble finding the document root on it's own.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.