note 97388 added to function.is-file

From: Date: Sat, 17 Apr 2010 02:22:36 +0000
Subject: note 97388 added to function.is-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-168340@lists.php.net to get a copy of this message
Bug with "is_file" and "file_exists" commands!!!!!!!!!! <? $path_file = "my_dir/my_file.jpg"; if(is_file($path_file)){ echo "<BR>File Found<BR>"; }else{ echo "<BR>File not found<BR>"; } class Test{ function test_file($file){ if(is_file($path_file)){ echo "<BR>File Found<BR>"; }else{ echo "<BR>File not found<BR>"; } } } $test = new Test(); $test->test_file($path_file); //Return 1 : File Found //Return 2 : File not found ?> ---- Server IP: 187.16.23.134 Probable Submitter: 187.21.128.130 ---- Manual Page -- http://www.php.net/manual/en/function.is-file.php Edit -- https://master.php.net/note/edit/97388 Del: integrated -- https://master.php.net/note/delete/97388/integrated Del: useless -- https://master.php.net/note/delete/97388/useless Del: bad code -- https://master.php.net/note/delete/97388/bad+code Del: spam -- https://master.php.net/note/delete/97388/spam Del: non-english -- https://master.php.net/note/delete/97388/non-english Del: in docs -- https://master.php.net/note/delete/97388/in+docs Del: other reasons-- https://master.php.net/note/delete/97388 Reject -- https://master.php.net/note/reject/97388 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168340) next »