note 126553 added to function.stream-is-local
| From: | nryabov at main dot php dot net | Date: | Wed, 03 Nov 2021 11:23:43 +0000 |
| Subject: | note 126553 added to function.stream-is-local | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217136@lists.php.net to get a copy of this message | ||
<?php
$file1 = '/somefile.jpg';
$file2 = 'file://shouldbelocal.jpg';
$file3 = 'http://someotherfile.jpg';
$file4 = 'file:///indeedlocal.jpg'; // Please note '///' instead of
'//'
$local = stream_is_local($file1);
$shouldbelocal = stream_is_local($file2);
$remote = stream_is_local($file3);
$indeedlocal = stream_is_local($file4);
var_dump($local, $shouldbelocal, $remote, $indeedlocal);
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 109.252.141.39)
----
Manual Page -- https://php.net/manual/en/function.stream-is-local.php
Edit -- https://main.php.net/note/edit/126553
Del: integrated -- https://main.php.net/note/delete/126553/integrated
Del: useless -- https://main.php.net/note/delete/126553/useless
Del: bad code -- https://main.php.net/note/delete/126553/bad+code
Del: spam -- https://main.php.net/note/delete/126553/spam
Del: non-english -- https://main.php.net/note/delete/126553/non-english
Del: in docs -- https://main.php.net/note/delete/126553/in+docs
Del: other reasons-- https://main.php.net/note/delete/126553
Reject -- https://main.php.net/note/reject/126553
Search -- https://main.php.net/manage/user-notes.php