Jump to content

Script not working


Anirban1987

Recommended Posts

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']));

}
?>

Link to comment
https://forums.phpfreaks.com/topic/201921-script-not-working/
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.