Loan - Computer Jobs - Submit articles - Become hacker - Find jobs

PDA

View Full Version : Error in subdirectories


Geir
Sep 2nd 2004, 10:46 pm
I am trying to set up an account with the ad network.
I have it all working on pages in my root directory, but in subdirectories I see the following error message printed right above the ad (ad still shows up):
Warning: open_basedir restriction in effect. File is in wrong directory in http://www.4freephonebillanalysis.com/footer.txt on line 7

Can anyone explain in simple words what the problem is, and how I would go about correcting it?

:) Geir

digitalpoint
Sep 2nd 2004, 10:50 pm
It's a restriction your hosting provider has specifically set up so files outside the directory tree cannot be accessed. You can find info on it here:

http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir

Ask them if there is a specific place within your domain you could put it where it would work anywhere within your domain.

Geir
Sep 3rd 2004, 9:36 am
Thank you Shawn,
It seems putting the ad_network.php file in each directory will remove this warning message.

Is this an acceptable work-around, or will it cause any trouble on your end?

:) Geir

digitalpoint
Sep 3rd 2004, 10:06 am
No, that won't work... as that will cause way too many ad queries to the server.

Geir
Sep 3rd 2004, 3:25 pm
Thank you Shawn,
I emailed my host, and it seems they have fixed the problem.

:) Geir