open_basedir restriction in effect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Mtnclimbers
Forum Newbie
Posts: 1
Joined: Tue May 30, 2006 6:57 pm

open_basedir restriction in effect

Post by Mtnclimbers »

this is what I get when I do an opendir('images'). Any help would be greatly appericiated.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

First read about open_basedir on the php manual.

Then understand that you need to modify PHP.ini to correct the problem. If you can't modify PHP use an .htaccess to override it:

Code: Select all

php_value open_basedir = /absolute/path/to/your/basedir/
anyone else: is that .htaccess syntax correct?
Post Reply