| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2002-10-06 14:59 UTC] derick@php.net
  [2002-10-22 01:00 UTC] php-bugs at lists dot php dot net
  [2006-06-26 15:37 UTC] mrueegg at metaworx dot ch
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 00:00:01 2025 UTC | 
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.