Ad:
 
  • PHP Discussion Thread
  • Unsolved
  • Views: 271
  • PHP RSS
Similar Threads
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 6:59 am.
Reputation Points: 13
Solved Threads: 24
Junior Poster
metalix is offline Offline
178 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
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
Build Custom RSS Feed


Follow us on Twitter


© 2010 DaniWeb® LLC