note 82375 added to wrappers.data
| From: | togos00 at gmail dot com | Date: | Tue, 08 Apr 2008 19:56:40 +0000 |
| Subject: | note 82375 added to wrappers.data | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138029@lists.php.net to get a copy of this message | ||
Note that the official data URI scheme does not include a double slash after the colon - that you
must include it when making calls to PHP is an artifact of the designers' misunderstanding of
URL syntax.
To automatically convert proper data URIs to ones understood by PHP, you can use code such as the
following:
function convertUriForPhp( $uri ) {
if( preg_match('/^data:(?!\\/\\/)(.*)$/',$uri,$bif) ) {
return 'data://' . $bif[1];
} else {
return $uri;
}
}
----
Server IP: 209.41.74.194
Probable Submitter: 69.95.123.237
----
Manual Page -- http://www.php.net/manual/en/wrappers.data.php
Edit -- https://master.php.net/note/edit/82375
Del: integrated -- https://master.php.net/note/delete/82375/integrated
Del: useless -- https://master.php.net/note/delete/82375/useless
Del: bad code -- https://master.php.net/note/delete/82375/bad+code
Del: spam -- https://master.php.net/note/delete/82375/spam
Del: non-english -- https://master.php.net/note/delete/82375/non-english
Del: in docs -- https://master.php.net/note/delete/82375/in+docs
Del: other reasons-- https://master.php.net/note/delete/82375
Reject -- https://master.php.net/note/reject/82375
Search -- https://master.php.net/manage/user-notes.php