Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Openbase_dir restriction
Old 01-07-2006, 01:04 PM Openbase_dir restriction
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
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
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Reply     « Reply to Openbase_dir restriction
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07904 seconds with 12 queries