note 52904 added to function.unlink

From: Date: Tue, 17 May 2005 11:24:44 +0000
Subject: note 52904 added to function.unlink
Groups: php.notes 
Request: Send a blank email to php-notes+get-89527@lists.php.net to get a copy of this message
Regarding the comment by 'admin at crazydrumguy dot info': You might want to consider using is_file instead of file_exists if you're wanting to target a file specifically (and not a directory). file_exists($name) will return true if $name contains a path to a directory (which may or may not be what you want to do...) ---- Manual Page -- http://www.php.net/manual/en/function.unlink.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52904 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52904&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52904&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52904&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52904&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52904&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52904&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89527) next »