Jump to content

Archived

This topic is now archived and is closed to further replies.

thx967

PHP and Images

Recommended Posts

Is it true that for php to deal images they have to be on the server? i.e. getimagesize()


or can it handle functions from a form page prior to upload?

Share this post


Link to post
Share on other sites
[!--quoteo(post=355005:date=Mar 14 2006, 02:07 PM:name=thx967)--][div class=\'quotetop\']QUOTE(thx967 @ Mar 14 2006, 02:07 PM) [snapback]355005[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Is it true that for php to deal images they have to be on the server? i.e. getimagesize()
or can it handle functions from a form page prior to upload?
[/quote]

as soon as a form is submitted, the uploaded files are in the $_FILES variable for you to be able to run functions on before you save them to your server. read up on a couple uploader scripts like [a href=\"http://www.tizag.com/phpT/fileupload.php\" target=\"_blank\"]this one[/a] to see more of what can be done before and after actual file transfer

Share this post


Link to post
Share on other sites
I don't think you can do it from client -> server if that's what you're asking, since PHP needs to process the page after it's submitted.

That would be intriguing to develop.. the only way I could see that working is using Ajax to upload the image to a temp directory, get information on it, and then decide what to do with it that way..

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.