Anirban1987 Posted May 16, 2010 Share Posted May 16, 2010 This script works well in local wamp server when it is called from flashplayer10 through a FileReference object . Actually when an upload button is clicked the script is called through fr.upload() .... but it does not work in server . though upload progress is seen , no error is thrown . Please help. <?php session_start(); include('SimpleImage.php'); if(isset($_FILES['Filedata']['name'])){ $myimage = new SimpleImage(); $myimage->load($_FILES['Filedata']['tmp_name']); $h=$myimage->getHeight(); $w=$myimage->getWidth(); if($h>=$w){$myimage->resizeToHeight(50); } else{$myimage->resizeToWidth(50); } $myimage->save('alluploads/'.basename($_FILES['Filedata']['name'])); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/201921-script-not-working/ 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.