Computing.Net > Forums > Web Development > Wierd ?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Wierd ?

Reply to Message Icon

Name: Jamie_McCoy
Date: December 30, 2004 at 17:39:52 Pacific
OS: XP Pro 5.1
CPU/Ram: Pentium 4 2.4Ghz
Comment:

i get this error, which has only came about when i switched hosts...

Warning: Unknown(): open_basedir restriction in effect. File(/home2/jaydio/public_html/index.php) is not within the allowed path(s): (/home2/refine/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home2/jaydio/public_html/index.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/home2/jaydio/public_html/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0

their is no problem with my code, seems to be something on the server, but they dont know what either..

really stuck, need help

cheers

Jaydiocity.co.uk



Sponsored Link
Ads by Google

Response Number 1
Name: Khalid
Date: December 31, 2004 at 02:38:43 Pacific
Reply:

When you change servers, a lot of system variables change aswell. For example the directory on the server where the pages are located.
You must alter your script to meet these new variables. When I write scripts, I always keep in mind that sometimes I have to relocate my files on the server, so I assign a variable to the location and use that one in the scripts. That way I only have to change the location ones to take effect in all the files.


0

Response Number 2
Name: Jamie_McCoy
Date: January 4, 2005 at 18:40:53 Pacific
Reply:

it was a PHP protection scheme, meaning PHP wont be execute unless the refferer is the assigned domain name to that account

in otherwise has soon as my DN resolved, it was fine

Jaydiocity.co.uk


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Wierd ?

Wierd .. ? www.computing.net/answers/webdevel/wierd-/1481.html

Wierd Wierd Wierd www.computing.net/answers/webdevel/wierd-wierd-wierd/1349.html

Frontpage,adding text,colours wierd www.computing.net/answers/webdevel/frontpageadding-textcolours-wierd/1758.html