thx967 Posted March 14, 2006 Share Posted March 14, 2006 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 Link to comment Share on other sites More sharing options...
obsidian Posted March 14, 2006 Share Posted March 14, 2006 [!--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 Quote Link to comment Share on other sites More sharing options...
keeB Posted March 14, 2006 Share Posted March 14, 2006 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.