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!
--- Begin Message ---
I may be way off base on this, but is it possible to specify a filename
on a url as in...

The user types in http://server/script.php?filetosend=filename.txt

The script.php recieves that file and processes accordingly?  Because
of the way its specified it would be a GET but I am not sure if this is
even possible.

Something tells me I have seen this done before but I am not sure. 
Thanks for any help on this.  I have done some Googling and Archive
search for something related and have come up blank.

-- 
Tom 

Don't throw your computer out the window, 
throw the Windows out of your computer! 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to