PHP Basics: File Upload

preview_player
Показать описание
In this video I talk about how to upload files with php
Рекомендации по теме
Комментарии
Автор

Thank you for this. I have 0 knowledge in PHP and managed to learn enough today starting with this to code an awesome upload page.

xMLGxWolfy
Автор

have a look at my security series I method a way to only allow image files there however you will probably want to use the filinfo functions to get the mime type of the file. also the getimagesize() function can tell you the dimentions of an image file.

betterphp
Автор

the problem with hosted sites is that you need permission to run server side code. javascript is client side, php is server side.

now given that that's a hosted website, you probably need to get permission to upload files. such websites are often guarded by strict permissions.

you got 3 options: 1) contact your admin 2) settle for java script 3) host your own website

ShokoDemon
Автор

id read it to see what each part does but wudnt question it until it failed and then id try and fix it but i have tryed many methods only ajax and jquery coding seem to work on hosted sites! any ideas?

Автор

set quality to 720p and you will be able to read thisfrom screen rather clearly.

i wouldn't recommend finding the code, since you;d be tempted to copy paste rather than /atleast/ copy it by looking at it.

ShokoDemon
Автор

permission as in the permission to directly write files to a directory. it is most likely governed by some file system management procedures, be it people-admins or a script running on that hosting website.

ShokoDemon
Автор

have you got this online so i can see it as i cant read from screen correctly

Автор

Wondering why this isn't working for me.


l.e.nichols
Автор

why does he put {[_FILES]['upload']} in curly braces ? around 6 min into the vid.

dirtyweasel
Автор

Im interested in js3 can u mk a vid tut on it plz

Автор

Pretty good your video, However I have some questions, If I would like to give it a try can I literally copy your code from the video and it will work ? I mean it will work as easy as in the video? What else do I need to have it work besides a web server and PHP installed ?

satoboshi