Re: Specifying file to send in url...
| From: | Marco Tabini | Date: | Fri, 15 Nov 2002 20:53:19 +0000 |
| Subject: | Re: Specifying file to send in url... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124653@lists.php.net to get a copy of this message | ||
Sure you can do it, you can retrieve it in your code as
$_GET['filetosend']. However, you have to be very careful with the
user's input, as someone could pass malicious file names, like
"/etc/passwd", which you probably wouldn't want to disclose.
So, unless you impose draconian restrictions and checks--or security is
not a concern... I suggest you think up a different mechanism :=)
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!