![]() |
|
#1
|
|||
|
|||
uploading files into serverhie,
i would like to ask if anyone got any codes that will let the user upload their files or pictures on the server? secondly, after uploading the files, how am i going to retrive the uploaded file from the server?(ie: if a user upload a picture,then the picture will appear according to the user's id) i'm asking this because i'm thinking of whether to upload pictures/files into mysql or just the server.Then i found few articles that suggest me to upload it into the server instead of mysql database.got an opinion anyone? thanx in advance. |
|
#2
|
||||
|
||||
|
Hello prinzekay,
No we do not have specific code to do that but if you want to discuss the code you ALREADY have, then we can help. This should be easy to do... ... and yes, storing the 'files' on your server is the recommended way to go, just place a link in a db table so you can still easily match USER_ID with UPLOADED_FILE. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Quote:
Hello prinzekay. Welcome to GIDForums. This is something that I am currently working on as well. There are codes available for this, so far I have found many perl implementations and a few C++ implementations. Here is a link that goes into some detail about how to do this. I am doing my own C++ implementation currently and it is not terrible to code yourself. If you are going to write the server side yourself, I can give you some hints about what you will get when a person uploads the file. Hope this helps. |
|
#4
|
|||
|
|||
thanx guys...thanx guys for the tips!
to JDS, i don't really understand what u said last time, about putting a link to the database so it matches the the user_id and files_uploaded?can u elaborate more?thanx... to dsmith, thanx for the link u gave me, it gives me better understanding of the concept discussed. I'm interested to write the server side code on my own...do u have any tips for me?thanx... |
|
#5
|
||||
|
||||
|
Okay. I am about done writing my server side script for it, but I did it all in C. I want to test it out a bit before I am 100% confident that it works, but so far so good.
For testing purposes, I am using this simple http code: HTML Code:
When someone hits the submit button, a file called "test" will be called with the following text piped to it. Code:
As you can see it seperates all of the fields by Code:
The alpha-numeric part of this is random in both length and content, but it will be the same for the entire file. The end seperator adds on "--" so that you know when you are at the end of your file. If you do know C, I can definitely give you my parsing routines so that you can look at them. (in that case, we should also move this thread to the C Forum.) Hope this helps, d |
|
#6
|
|||
|
|||
thanx...thanx dsmith...i understand the codes, n i'll try to run it on my pc later on...as i've found the codes in php to upload the files into server.maybe u guys can comment on the coding of this program.because i'm planning to use these codes.it's a bit poor on the gui though,but it get the job done.thanx...
www.korn.lp-hc.us |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to allow download file in Apache Web server? | Zaro | Apache Web Server Forum | 1 | 24-Feb-2004 02:41 |
| how to use our PC as a webmail server? | razahasnain | Web Hosting Forum | 3 | 17-Jan-2004 18:24 |
| · Windows 2003 Server Reseller Special: Unlimited Domains/2 GB Space/for $19.99 | contactsonia | Web Hosting Advertisements & Offers | 0 | 09-Jan-2004 05:46 |
| Help making Apache to WAP server ! | Lazmo | Apache Web Server Forum | 1 | 02-Jan-2004 12:27 |
| gxx linker accepts only 7 object files | danielxs66 | CPP / C++ Forum | 1 | 12-Dec-2003 09:27 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The