Url encode chars like + & is giving me trouble
Posted: Sat Nov 01, 2003 12:50 pm
Hi there,
i have this problem about downloading files with a download.php page.
for example
download.php?file=de + factor.jpg
I was hoping there is a sort of command for this to work, else i need to go over all the chars and rename them or something
. that might be time consuming...
If anybody got an idea plz.
Btw this is the line-code from the form-page:
And this is the "redirect" line in download.php:
i have this problem about downloading files with a download.php page.
for example
download.php?file=de + factor.jpg
I was hoping there is a sort of command for this to work, else i need to go over all the chars and rename them or something
If anybody got an idea plz.
Btw this is the line-code from the form-page:
Code: Select all
<?php
echo " <td width=320 bgcolor=#fee0b2 class=normal><a href="download.php?file=" . $row["SourceFileName"] . "" target=_blank>" . $row["Description"] . "</a></td>\n";
?>And this is the "redirect" line in download.php:
Code: Select all
<?php
header('Location: ' . $downloadfile);
?>