note 123573 added to function.is-dir
| From: | jerome dot pros at gmail dot com | Date: | Thu, 31 Jan 2019 08:40:00 +0000 |
| Subject: | note 123573 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210150@lists.php.net to get a copy of this message | ||
Note that is_dir() also works with ftp://.
For example :
<?php
if(is_dir('ftp://user:pass@host/www/path/to/your/folder'))
{
// Your code.
}
?>
But note that if the connexion fails due to invalide credentials, this will consider that the folder
doesn't exist and will return FALSE.
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.142 (proxied: 159.180.248.214)
----
Manual Page -- http://php.net/manual/en/function.is-dir.php
Edit -- https://master.php.net/note/edit/123573
Del: integrated -- https://master.php.net/note/delete/123573/integrated
Del: useless -- https://master.php.net/note/delete/123573/useless
Del: bad code -- https://master.php.net/note/delete/123573/bad+code
Del: spam -- https://master.php.net/note/delete/123573/spam
Del: non-english -- https://master.php.net/note/delete/123573/non-english
Del: in docs -- https://master.php.net/note/delete/123573/in+docs
Del: other reasons-- https://master.php.net/note/delete/123573
Reject -- https://master.php.net/note/reject/123573
Search -- https://master.php.net/manage/user-notes.php