Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP jQuery
which technology is better to upload files to site, PHP or JQuery.
Posted 17-Apr-12 9:10am
Lubomur313
Comments
SAKryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

jQuery is a javascript library, PHP is a back-end scripting language. You're asking the wrong question.
  Permalink  
Comments
SAKryukov at 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 at 17-Apr-12 22:17pm
   
5+
ProEnggSoft at 17-Apr-12 22:51pm
   
5+
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
Wonde Tadesse at 17-Apr-12 22:17pm
   
5+
SAKryukov at 17-Apr-12 22:34pm
   
Thank you, Wonde.
--SA
ProEnggSoft at 17-Apr-12 22:51pm
   
Good answer. +5
SAKryukov at 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)

  Print Answers RSS
0 OriginalGriff 270
1 Sergey Alexandrovich Kryukov 144
2 Rob Philpott 100
3 CHill60 70
4 Peter Leow 60
0 OriginalGriff 6,902
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,479
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 17 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100