Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Uploading a file without a form????
- Craig Keightley
November 17, 2004, 5:44 pm
rate this thread
I am trying to write a file upload script that uploads a file to a web
server but the file location is in the url
can the move_uploaded_file() function be used to upload the file
$_GET['file'] to the web server?
Many thanks for any help or advice
Re: Uploading a file without a form????
move_uploaded_file() will only move an uploaded file from one directory
on a web server to another.
From the manual:
"This function checks to ensure that the file designated by filename is
a valid upload file (meaning that it was uploaded via PHP's HTTP POST
upload mechanism). If the file is valid, it will be moved to the
filename given by destination."