[code=php]$originalPic = imagecreatefromstring ($aBinaryImageString);
$picTempDir = ‘../LoggedIn/Temp/pic.jpg’;
$angle = 90.0;
$originalPicRotated= imagerotate($originalPic, $angle, 0);
imageJPEG($originalPicRotated, $picTempDir,100);
$fPic = fopen($picTempDir, ‘r’);
$binaryPic = fread($fPic, filesize($picTempDir));
$binaryPic = addslashes($binaryPic);
fclose($fPic);
The above code is supposed to take an image stored as a binary string, rotate it 90 degrees and save it back as another binary string…
For some reason the code works on my testing server but when I try to run it on my host, it stops at line 4… Do any of you have any suggestions as to what the problem may be- or maybe a better way of writing the code?
The hosting company claims that their imagerotate() function is working properly and they have standard php5…