Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
which technology is better to upload files to site, PHP or JQuery.
Posted
Comments
Sergey Alexandrovich Kryukov 17-Apr-12 18:00pm    
Makes no sense, whatsoever. If you are asking such questions, it's pretty hard to explain why it does not make sense, because it need to start from the very beginning. How about this: you learn the basics -- what client and server sides do, which technologies work on which side -- and ask your question again, if you still need it?
--SA

jQuery is a javascript library, PHP is a back-end scripting language. You're asking the wrong question.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Apr-12 18:12pm    
Well, this is... short and may be the best way to answer, but OP might be very unhappy. Anyway, my 5.

Maybe, this is a waste of my time, but I answered in some detail. Probably, my comment to the question is more essential -- OP is recommended to learn about the matter from the very beginning.
--SA
Wonde Tadesse 17-Apr-12 22:17pm    
5+
ProEnggSoft 17-Apr-12 22:51pm    
5+
Please see my comment to the question. Chris is absolutely right. It's pretty hard to explain everything from the very beginning, because from the very beginning it could take a whole article for the absolute beginners you might really need. So I'll just give you a basic hint.

To start with: you need both client side and server side to transfer a file from a client to a server. On a client side, you need just an HTML form with the method "post" to send an HTTP request to the server. This request will contain the full content of the file to be uploaded. The server side needs to read the post and do something with the data sent over the HTTP protocol, for example — write the file(s). On the client side, you can also perform the post using AJAX, and here you may or may use jQuery. Usually, a form without any client-side scripting would do just fine.

On the server side, you need some server-side code the process the data as I explained above. Here comes the choice between the server-side technologies: PHP, ASP.NET, Python with WSGI, etc. — you name it. Even here, the predicate "better" is not defined — it depends.

—SA
 
Share this answer
 
Comments
Wonde Tadesse 17-Apr-12 22:17pm    
5+
Sergey Alexandrovich Kryukov 17-Apr-12 22:34pm    
Thank you, Wonde.
--SA
ProEnggSoft 17-Apr-12 22:51pm    
Good answer. +5
Sergey Alexandrovich Kryukov 17-Apr-12 23:23pm    
Thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900