Basedir.. dir().. etc. - PHP4.b3

From: Date: Wed, 01 Dec 1999 13:40:12 +0000
Subject: Basedir.. dir().. etc. - PHP4.b3
Groups: php.version4 
Request: Send a blank email to php-version4+get-7168@lists.php.net to get a copy of this message
Hola.. .. httpd.conf contains: php_admin_flag safe_mode on php_admin_value safe_mode_exec_dir "/path/to/httpd/cgi/" php_admin_value doc_root "/root/of/html/sites/" php_admin_flag engine on php_admin_value open_basedir "/root/of/html/sites/" In a script (.php) that is running in "/root/of/html/sites/phptest/joho/" I do a <?php $d = dir ("/root/of/html/sites"); .. read directory and output contents .. ?> This works. If I, however, attempt to access "/root/of/html/sites/phptest/joho", for example - I get an "access denied.." error.. [OpenDir: Permission denied errno 13]? I thought that the open_basedir WAS a base dir.. ? If it is, shouldn't I be able to access stuff beneath it? I have also tried dir ("phptest/joho") with identical results. -+- Joaquim Homrighausen * joho@webbplatsen.se * 2:201/330@fidonet WebbPlatsen i Sverige AB * Stockholm, Sweden Phone: +46 8 6505070 * Fax: +46 8 6505071 * http://www.webbplatsen.se -+-

« previous php.version4 (#7168) next »