uploading to ftp in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sh33p1985
Forum Commoner
Posts: 78
Joined: Thu Mar 11, 2004 9:22 am

uploading to ftp in php

Post by sh33p1985 »

im developing a website and have written a administration area for the owner to manage and oversee her website. one of the primary functions here is the ability to add/edit/remove prodcuts from the database. i wanted to associate each product with an image when that product was initially added to the database; hence you specify the image which is stored locally on your HD, and upload that image to lets say "/Product Images" on the websites server. there is a field in the products table which holds the URL of the products image so it can be easily shown.

however im having little sucess with using the ftp functions to atually upload anything.

any help would be much appreciated.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Care to post your existing code?
sh33p1985
Forum Commoner
Posts: 78
Joined: Thu Mar 11, 2004 9:22 am

Post by sh33p1985 »

its ok, solved the problem using the $_FILES array and move_uploaded_file() instead of the ftp functions.
Post Reply