#19784 [Opn->Fbk]: file_exists doesn't work

From: Date: Sun, 06 Oct 2002 19:59:33 +0000
Subject: #19784 [Opn->Fbk]: file_exists doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21662@lists.php.net to get a copy of this message
ID: 19784 Updated by: derick@php.net Reported By: m.martinello@iol.it -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: Linux 2.4.18 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-10-06 14:59:05] m.martinello@iol.it I am using php 4.2.3 with httpd 2.0.43. The functions file_exists, is_file and file_size doesn't work at all. file_exists("file.txt"); gives me "false" even if the file "file.txt" exists in the same directory of the script containing that function. If I use the full path of "file.txt", file_exists("/full/path/to/file.txt"); gives me "true" and works well. How to solve this problem? I can't use the full path in the scripts. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19784&edit=1

« previous php.bugs (#21662) next »