iceflyin
08-31-2007, 03:33 AM
I have a really odd problem... This code right here is failing if the Filesize is above some amount. On my old server I could upload ridiculously big images and this would all work fine.
No error message or anything, the script just dies... *Note: It still works for small images, while it will just go blank without an error message with a 700kb image.
Edit: I did more testing, and it's not sized based... I think it fails if the image is above certain dimensions.
//Heres the part where it dies...
echo "Anything?"; //Echo's properly...
if ($imageType == 2){
$imagen = imagecreatefromjpeg("eventPhotos/latest.img");
$imaget = imagecreatefromjpeg("eventPhotos/latest.img");
} else if ($imageType == 1){
$imagen = imagecreatefromgif("eventPhotos/latest.img");
$imaget = imagecreatefromgif("eventPhotos/latest.img");
} else {
echo "<center><h1>Unsupported image format.</h1></center>";
}
echo "Anything Again?"; //This doesn't appear... Script died... Without an error message.
No error message or anything, the script just dies... *Note: It still works for small images, while it will just go blank without an error message with a 700kb image.
Edit: I did more testing, and it's not sized based... I think it fails if the image is above certain dimensions.
//Heres the part where it dies...
echo "Anything?"; //Echo's properly...
if ($imageType == 2){
$imagen = imagecreatefromjpeg("eventPhotos/latest.img");
$imaget = imagecreatefromjpeg("eventPhotos/latest.img");
} else if ($imageType == 1){
$imagen = imagecreatefromgif("eventPhotos/latest.img");
$imaget = imagecreatefromgif("eventPhotos/latest.img");
} else {
echo "<center><h1>Unsupported image format.</h1></center>";
}
echo "Anything Again?"; //This doesn't appear... Script died... Without an error message.