4.2.3, apache 2.0.40 file access problem

From: Date: Tue, 10 Sep 2002 18:44:55 +0000
Subject: 4.2.3, apache 2.0.40 file access problem
Groups: php.general 
Request: Send a blank email to php-general+get-115873@lists.php.net to get a copy of this message
Hi Folks, I upgraded to 4.2.3, but am having file access problems. Here's the code that fails: $file = "test"; if(!is_readable(getcwd() . "/" . $file))... // works if(!is_readable($file))... // fails If I access a file by full path, it works fine. If I access a file in the local dir, it fails. Even though getcwd() is the same as the full path above. I've combed through httpd.conf and php.ini but could not find the culprit. Any ideas? Thanks Cheers, -Vadim PS: Configuration: RedHat 7.2 Apache 2.0.40 PHP 4.2.3 './configure' '--with-mysql' '--with-apache2=/usr/local/apache2' '--with-apxs2=/usr/local/apache2/bin/apxs' php.ini: ;open_basedir = safe_mode = Off disable_functions = register_globals = On doc_root = extension_dir = ./ ; cgi.force_redirect = 1

« previous php.general (#115873) next »