note 127367 added to function.is-file

From: Date: Fri, 29 Jul 2022 17:10:30 +0000
Subject: note 127367 added to function.is-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-219081@lists.php.net to get a copy of this message
Note also that if is_file(), (and also is_dir()), will return false if you have the open_basedir configuration set and the file (or directory) is not in one of the configured locations. Essentially as the other notes offer, if you don't have permissions to access the file or dir these functions return false but this is also another use case that one may overlook. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 216.123.161.134) ---- Manual Page -- https://php.net/manual/en/function.is-file.php Edit -- https://main.php.net/note/edit/127367 Del: integrated -- https://main.php.net/note/delete/127367/integrated Del: useless -- https://main.php.net/note/delete/127367/useless Del: bad code -- https://main.php.net/note/delete/127367/bad+code Del: spam -- https://main.php.net/note/delete/127367/spam Del: non-english -- https://main.php.net/note/delete/127367/non-english Del: in docs -- https://main.php.net/note/delete/127367/in+docs Del: other reasons-- https://main.php.net/note/delete/127367 Reject -- https://main.php.net/note/reject/127367 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219081) next »