note 46943 added to function.basename
| From: | markku dot tiuri at nsftele dot com | Date: | Thu, 28 Oct 2004 11:30:51 +0000 |
| Subject: | note 46943 added to function.basename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79245@lists.php.net to get a copy of this message | ||
I am using Apache 2.0.48.0 with Win-XP+servicepack2
I tried to build a link to a file where the file path directory
name has blanks like this
$link_file='C:/Program Files/NSF Telecom/Melody_IP/file.txt';
echo '<A HREF="FILE://'.$link_file.'">open this
file"</A>';
if You place the cursor on the link in Browser
the blanks are shown as '%20' and the link wont work.
It works if You copy the shortcut and paste it on the
URL and then replace the '%20':s with pressing spacebar ?
URLDECODE,RAWURLDECODE,STR_REPLACE or CHR(32)
do not work either. I tried everything.
PLEASE CAN YOU HELP ME !
/MARKKU
----
Manual Page -- http://www.php.net/manual/en/function.basename.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46943
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46943&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46943&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46943&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46943&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46943&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46943&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46943&report=yes
Search -- http://master.php.net/manage/user-notes.php