Forum Moderators: coopster

Message Too Old, No Replies

PHP upload images without FTP?

         

AlexLee

5:33 am on Dec 24, 2004 (gmt 0)

10+ Year Member



Hi, I need some help here. I am currently using my computer to test my server and they consist of Apache, PHP and MySQL.

I want to allow people to upload images on to the site. The path of the image will be store in a database, together with all the other infomation regarding the pictures.

How do I do the upload with PHP when I do not have FTP? I read somewhere you can use streams to upload on to the server but I have no idea how. Or should I just install a FTP? If so, how do I install an FTP on my computer.

jatar_k

5:37 am on Dec 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld AlexLee,

it just so happens we have a very helpful post from Birdman that demonstrates this exact thing

Image upload and Thumbnail Generator [webmasterworld.com] msg 29

it does a little more than you may need but it is a solid uploader. It also makes thumbnails which is very useful for showing a small image and then having a 'click to enlarge' or something.

dreamcatcher

9:45 am on Dec 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Alternatively, you can try one of the free script resources like hotscripts.com, they have plenty of free uploader scripts which you may be able to adapt into your current site.

Try Birdman`s example first though as it will help you understand how its done.

dc :)

AlexLee

3:34 am on Dec 25, 2004 (gmt 0)

10+ Year Member



Wow, thanks! This forum is great! Fast replies and great answers! Now I know I would be hanging around here for a long time...
:)