eduard Posted January 19, 2011 Share Posted January 19, 2011 Can someone explain to me in simple words what does PHP File upload mean? Because I don´t understand the tutorial (with an example please?) Link to comment Share on other sites More sharing options...
thescientist Posted January 19, 2011 Share Posted January 19, 2011 It allows a server side script to upload file(s) to a server (image, document, etc), typically through a form that a client/user interacts with on a website. The nature of where that files goes and what happens to it after that point is dependent on the application using the function, and will vary. What about the tutorial's example don't you understand? Link to comment Share on other sites More sharing options...
eduard Posted January 19, 2011 Author Share Posted January 19, 2011 It allows a server side script to upload file(s) to a server (image, document, etc), typically through a form that a client/user interacts with on a website. The nature of where that files goes and what happens to it after that point is dependent on the application using the function, and will vary. What about the tutorial's example don't you understand?For example, if I have to upload my c. v. (.doc file) (for jobs) this is PHP? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 19, 2011 Share Posted January 19, 2011 PHP is one way to save the file, other server languages can also. A common task is to allow users to upload images, you could use PHP to resize and save the image, etc. Link to comment Share on other sites More sharing options...
eduard Posted January 19, 2011 Author Share Posted January 19, 2011 PHP is one way to save the file, other server languages can also. A common task is to allow users to upload images, you could use PHP to resize and save the image, etc.Thanks!When do you use PHP or what´s the advantage of using PHP? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 19, 2011 Share Posted January 19, 2011 There's a comparison of various server scripting languages here:http://www.ozzu.com/programming-forum/brie...ges-t90248.html Link to comment Share on other sites More sharing options...
boen_robot Posted January 19, 2011 Share Posted January 19, 2011 Assuming you understood what the terms "input" and "output" mean, think of file uploading like that...Your users can give your server files as input. Normally, the server can't do anything with this input, so it proceeds as if it doesn't exist.With PHP, as well as most other languages, the server can let YOU (that is, your programs) decide if you want to do anything with the input. If you want, you can inspect the file, and/or do whatever you like with it, such as keep a copy of it on the server for example. Link to comment Share on other sites More sharing options...
eduard Posted January 19, 2011 Author Share Posted January 19, 2011 Assuming you understood what the terms "input" and "output" mean, think of file uploading like that...Your users can give your server files as input. Normally, the server can't do anything with this input, so it proceeds as if it doesn't exist.With PHP, as well as most other languages, the server can let YOU (that is, your programs) decide if you want to do anything with the input. If you want, you can inspect the file, and/or do whatever you like with it, such as keep a copy of it on the server for example.My suggestion should be: a drawing at the beginning of your tutorials with a computer of the programmer, a server, a client computer (with the browser) showing what is doing what. At least for me it is much more understandable! Link to comment Share on other sites More sharing options...
thescientist Posted January 19, 2011 Share Posted January 19, 2011 you mean like when you google it?http://www.google.com/images?hl=en&sug...440&bih=721 Link to comment Share on other sites More sharing options...
eduard Posted January 19, 2011 Author Share Posted January 19, 2011 you mean like when you google it?http://www.google.com/images?hl=en&sug...440&bih=721 Thanks very much! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.