Forum Moderators: coopster
The challenge:
An upload-form that:
1. Uploads the photo directly to the home-server, processing the photo (resizing and sharpening using php) and
2. Also maintains session to web-server dealing with Mysql and also php. The web server should wait until finishing on processing home-server.
Home-server environment: Windows Xp, Mysql and php in latest versions
Web server environment: Linux, Mysql and php
[edited by: siebe at 2:20 pm (utc) on Feb. 22, 2004]
As for the question, the only way i know how to do this is use curl.
first you upload the image to the server with little ram, then include a php file in the upload php file after the image is oploaded in that includes a execute from your home server shell_exec("curl -o [savetofilename] [example.com...] throug php
which will transfer the file and then use shell_exec("rm [example.com...] from the slow server to remove the image.
make sense? try a search for "php resize image" that should give you examples of resizing images in php as i have no examples of this.
I assume the upload form is located on your webserver. Why not make a file on your local machine the action of the upload form?
curl from the form to your home machine might work as well.
How big are the images you are going to upload? Can't you just upload, process and then delete the orig?