Log in

View Full Version : Uploading



AzKhan
04-17-2006, 02:11 PM
hi people im new to this forum........ i making a website and ive want to make a page on uploading e.g. i want people to be able to upload their own images to my websites but i donno how to do that could any1 help me out plz

Twey
04-17-2006, 02:23 PM
http://www.php.net/features.file-upload

AzKhan
04-17-2006, 03:31 PM
thank for that but there is a problem ive never done PHP so i donno what is going on

Twey
04-17-2006, 03:42 PM
You'd best learn then. There are some tutorials on php.net and http://www.w3schools.com/. You can't do uploads without a server-side language.

JRS
04-17-2006, 07:02 PM
http://www.cgi.resourceindex.com/Programs_and_Scripts/Perl/File_Management/File_Uploading/

djr33
04-17-2006, 08:06 PM
If you want uploads, be ready to jump into some advanced coding... just how it works. It's not that bad once you get used to it, though.

AzKhan
04-18-2006, 02:02 PM
damn lol u people are next level for me i thought it was jus a small simple code and wanted to be like this http://jealousy.socomladders.co.uk this persons website.

NXArmada
04-18-2006, 08:30 PM
that website uses PHP to upload the files and display the list.

djr33
04-19-2006, 05:56 AM
Sure. What you see is a very simple code. It's just a simple form.
The complex part comes on the NEXT page. It uses php code BEFORE you see anything (and you don't/can't see that code), then it returns another simple page with the file that was uploaded... etc.

Basically, it IS complex... and that's the only way to do it. The html is easy, but the php is a bit daunting to start. I'm getting into it. I like it. It's worth it for what I need. It's the only way, so, is it for you too? (there's also ASP, I think, but that's just as hard, I'd assume, and I'd use php as its not microsoft proprietary).

AzKhan
04-22-2006, 02:10 PM
so djr33 how what am i ment to do it..what i need is a step by step guide on how to do it but i will understand it if it was more basic clear im not that high tech person if u know what i mean.

djr33
04-23-2006, 05:33 AM
im not that high tech person if u know what i mean.
Don't. No, seriously.

Or, find a script through google, if they exist (might vary by server, but probly available somewhere)

Or, get over "don't want to do complex php" and just jump in. It's not easy... takes a lot of work. just getting there myself.

I mean, look at it like taking a driving lesson and saying "but, wait, I want to land the space shuttle"... sure, it's AWESOME, but it's also just much harder. Certainly not impossible, though.

Look at the link twey gave, and google it.


In short, code a form, sending you to "upload.php" that will take the uploaded file, save as somethingfilename.ext, then say "all uploaded. yay", redirect to the next page.
Then you have to think about security, adding a list of ok and not ok file extensions, etc etc.

It's time consuming.

Google it :)

Twey
04-23-2006, 10:56 AM
It's not easy...Since when has PHP been difficult? :confused:
Unless one gets into the OO side of it, which could be tricky if one isn't familiar with the OO paradigm, PHP is really not a complex language to learn.

djr33
04-23-2006, 08:37 PM
Yeah... it's not that hard.

but for someone who "isn't a tech person" and, presumably, implies that they don't want to become one, then it's not the right thing to try to learn.

However, if you WANT to learn, I'm sure you can.

PHP isn't bad... really isn't. But you do have to dive into dealing with code. It's not that bad. But it IS code, which freaks lots of people out.

Twey
04-23-2006, 09:03 PM
But it IS code, which freaks lots of people out.Poor deprived souls. :p
but for someone who "isn't a tech person" and, presumably, implies that they don't want to become one, then it's not the right thing to try to learn.The whole point of languages like PHP is to make web development more accessible to those who "aren't tech people." It's possible to do anything PHP can in, say, C. Or even assembler, if one is sufficiently masochistic to want to try it. Languages like PHP, Perl or Python just make it much easier.

djr33
04-23-2006, 11:51 PM
True, but as I said, many people hate code.

Look at how many people refuse to learn html.

I was there at one point... totally gotten over that bad idea... but... others haven't. Hopefully they'll figure it out ;)