941,507 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 474
  • PHP RSS
Jul 11th, 2010
0

php ftp upload thumbnail

Expand Post »
Hi there.

I am looking to create a script in php that will get an image from an upload form and upload it to a site using ftp.
It needs to save the original image in the site images/full/ and also create a proportional image thumbnail (100x100) in images/thumb/
What is the simplest way to go about this?

EDIT: Oh just to mention i need to create a script, not use a web app
Last edited by metalix; Jul 11th, 2010 at 7:59 am.
Similar Threads
Reputation Points: 13
Solved Threads: 34
Posting Whiz in Training
metalix is offline Offline
218 posts
since Mar 2010
Jul 11th, 2010
0
Re: php ftp upload thumbnail
Hi,

You want a script and not use a webapp but then you say that you get a file from a form.

If you want to get a file from a webform:
You just Post the form to the server.
http://www.tizag.com/phpT/fileupload.php

Then use the ftp_put function of php to copy the file to the remote server:
http://www.php.net/manual/en/function.ftp-put.php


note: if you really dont want to use a webapp to upload the file, you can make a script that receives an argument with the name of the file.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
edup_pt is offline Offline
16 posts
since Jul 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP Form Session Token Something Weird ?
Next Thread in PHP Forum Timeline: Display Month in chronological order





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC