note 73974 added to function.str-replace
| From: | krzysztof at podhorodynski dot info | Date: | Mon, 19 Mar 2007 10:06:06 +0000 |
| Subject: | note 73974 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124585@lists.php.net to get a copy of this message | ||
if you're creating a form tu upload files, and file that is uploaded has polish font
(Ä
ÄÄÅÅóÅżź) and after uploading you give a link to this file http://server/upload/Ä
ÄÄÅÅóÅżź.txt
it won't work so you must change polish fonts to it's representation in link coding.
$serwer = array (' ', "±", "Ä", "Ä",
"Å", "Å", "ó", "¶", "ż",
"Ľ");
$link = array ('%20', "%b1", "%e6", "%ea", "%b3",
"%f1", "%f3", "%b6", "%bf", "%bc");
$filename = str_replace($serwer, $link, $filename);
----
Server IP: 195.136.184.34
Probable Submitter: 87.207.6.156
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/73974
Del: integrated -- https://master.php.net/note/delete/73974/integrated
Del: useless -- https://master.php.net/note/delete/73974/useless
Del: bad code -- https://master.php.net/note/delete/73974/bad+code
Del: spam -- https://master.php.net/note/delete/73974/spam
Del: non-english -- https://master.php.net/note/delete/73974/non-english
Del: in docs -- https://master.php.net/note/delete/73974/in+docs
Del: other reasons-- https://master.php.net/note/delete/73974
Reject -- https://master.php.net/note/reject/73974
Search -- https://master.php.net/manage/user-notes.php