okay i have a few problems with my script i am creating to help in tracking donations.
The problem is when users try to register they get the following error
Code:
Warning: main(): open_basedir restriction in effect. File(/config/config.php) is not within the allowed path(s): (/home/uazozqli:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/uazozqli/public_html/donations/scripts/forms/purchase_info_final.php on line 2
Warning: main(/config/config.php): failed to open stream: Operation not permitted in /home/uazozqli/public_html/donations/scripts/forms/purchase_info_final.php on line 2
Fatal error: main(): Failed opening required '/config/config.php' (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/uazozqli/public_html/donations/scripts/forms/purchase_info_final.php on line 2
the problem is that my general config for the entire script resides in one folder and cannot be access by the script.
If i have it like
Code:
require_once("config/config.php");
then i trys and goes to the folder within were that script is located
but when i try to use the general fall back to root web method it does not work
Code:
require_once("/config/config.php");
i get the error above, and i dont want to move the config file as when i decide to publish it and make it avalible to the general popualtion i dont want to edit multiple config files across the site with the same info
any help would be appreciated
thanks
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
|