Reiniervr Posted November 11, 2002 Posted November 11, 2002 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/fret/shop/catalog/includes/functions/general.php on line 957 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/fret/shop/catalog/includes/functions/class.phpmailer.php on line 655 Warning: Cannot add header information - headers already sent by (output started at /www/htdocs/fret/shop/catalog/includes/functions/general.php:957) in /www/htdocs/fret/shop/catalog/includes/functions/general.php on line 23
mattice Posted November 11, 2002 Posted November 11, 2002 open_basedir stringLimit the files that can be opened by PHP to the specified directory-tree. When a script tries to open a file with, for example, fopen or gzopen, the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink. The special value . indicates that the directory in which the script is stored will be used as base-directory. Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited. The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/" Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them"
Reiniervr Posted November 11, 2002 Author Posted November 11, 2002 How/where can I edit "open_basedir = /dir/incl/" on a virtual server?
cmyk Posted December 12, 2003 Posted December 12, 2003 see my post: http://www.oscommerce.com/forums/index.php?act...ndpost&p=273407 modifying general.php isn't the way to go IMHO. cheers, phil
Recommended Posts
Archived
This topic is now archived and is closed to further replies.