|
-- Posted by DaveH at 5:36 pm on Aug. 3, 2008
Hello I'm looking for a PHP file upload script which will allow me to upload a file to my website via a browser. It's important that it echos the upload location. I have had a look everywhere and can't find a suitable one. I can find them with an AJAX progress bar and lots of fancy stuff although it's best if it's left simple. Anyone have one or know where to download one? Many Thanks p.s if you can give me a link or send me one i'll transfer you over 150 points edit: points allready given to allsmiles
-- Posted by allsmiles at 5:37 pm on Aug. 3, 2008
It's really simple stuff. You should learn how to program one yourself. It'll be good practice.
-- Posted by DaveH at 5:39 pm on Aug. 3, 2008
Quote: from allsmiles at 5:37 pm on Aug. 3, 2008
It's really simple stuff. You should learn how to program one yourself. It'll be good practice.
I am hoping too, though it's kinda urgant and i'm hoping to get one within the next 24 hours which is working. I'm looking at some tutorials now but they are not showing how to echo the file location.
-- Posted by allsmiles at 6:04 am on Aug. 4, 2008
The file is uploaded to a temporary location identified with the variable $file['tmp_name'] (where file's whatever you named the variable). You would use a command such as move_uploaded_file($file['tmp_name'], "new/directory/filename.ext"); to relocate it to a permanent location. That's its new address ;)
|