Jump to content

PHP and Images


thx967

Recommended Posts

[!--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
Link to comment
https://forums.phpfreaks.com/topic/4962-php-and-images/#findComment-17483
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..
Link to comment
https://forums.phpfreaks.com/topic/4962-php-and-images/#findComment-17484
Share on other sites

Archived

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

×
×
  • Create New...

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.