PHP file upload
By Free Tutorials on Oct 8, 2008 in PHP Programming Tutorials
File Upload tutorial by Birdie@ByteForums.com
Larger version of the tutorial and others on site.
By Free Tutorials on Oct 8, 2008 in PHP Programming Tutorials
File Upload tutorial by Birdie@ByteForums.com
Larger version of the tutorial and others on site.
Sorry, comments for this entry are closed at this time.
© Copyright Directory Of Tutorials 2007. All rights reserved.
WordPress Wordpress Themes XHTML
|
|
Just enter your name and email below |
glad you like it.
I’ll be making some others when I have time (mainly from requests I’ve been sent)
CBirdieUK | Oct 8, 2008 | Reply
thank you for uploading this video. it is the easiest php file upload script i’ve seen yet, and it works just fine.
nolisting | Oct 8, 2008 | Reply
Ahhh that good old bug, haha yeah I remember that, understandable now.
cppwhore | Oct 8, 2008 | Reply
yeah, used to use that but had problems with it on older versions of PHP because it never used to have POST as unset or something.
CBirdieUK | Oct 8, 2008 | Reply
Just a little tip mate, if you’re re-loading php on the same page, call isset($_POST['submit']) it’s a lot better
cppwhore | Oct 8, 2008 | Reply
so how do you display the uploaded file thank you any help would be great
tuckbloor | Oct 8, 2008 | Reply
over 5 years of php freelance work, i’ve never saw a problem with that technique as almost every browser on the web submits the submit button. Anyway, what i was checking on their was a hidden input value so if that doesnt submit, its not exactly a good browser. Its just easier to teach when this stuff can already be confusing for someone watching a 5 min video.
CBirdieUK | Oct 8, 2008 | Reply
it’s not about security, it’s more about learning noobs the wrong thing. It could be possible that a browser doesn’t send the submit button along with the form, than you’re screwed with your script. It wil be ok with the request_method!
anneliessmet | Oct 8, 2008 | Reply
Why not?
No extra security added on and its just more for a newbie to learn in a quick tutorial
CBirdieUK | Oct 8, 2008 | Reply
Never heard of $_SERVER['REQUEST_METHOD']?
Never just check for a variable!
anneliessmet | Oct 8, 2008 | Reply
DreamWaver.
Petterss22 | Oct 8, 2008 | Reply
what php editor is that
sssanny | Oct 8, 2008 | Reply
just add an if(!move_uploaded_file(…)) { error message }
CBirdieUK | Oct 8, 2008 | Reply
I added a MAX_FILE_SIZE to the form, so I tested it and it stops files larger than 100KB but it still says its uploaded even though it hasnt, so I think I need to add an ‘else’ in there somewhere.
buzincarl | Oct 8, 2008 | Reply
How do we add ‘else’ so that if there was an error we would know of it ?
buzincarl | Oct 8, 2008 | Reply
okay thanks!
bart0z | Oct 8, 2008 | Reply
Nice Video
DunkelHeit18jt | Oct 8, 2008 | Reply
using notepad, when on save as…
choose “all files” for “save as type”
CBirdieUK | Oct 8, 2008 | Reply
i copied the code.. but, as what do i save it? i used notepad, but then when i save it as a .php file, it saves it as for example upload.php.txt.. and thats nog right
bart0z | Oct 8, 2008 | Reply
thank you dude !!!
juliomario14 | Oct 8, 2008 | Reply
thank you so much! just what i’ve been lookin for! very helpful! keep it up! ^_^
airvinz | Oct 8, 2008 | Reply
xD Har har har!
Sounds so funny, trying to avoid the accent? =P
kalok88 | Oct 8, 2008 | Reply