hi there.
i have a lil problem regarding product images. i am sure its an easy one to sort out but its really nagging me and i cant seem to rectify it. i have a wamp server and a remote server. the images are displaying fine on the wamp but on the remote server i just get the http path to the image
www dot itinwales dot co dot uk/image.php?bigImg=LAMPNEC64.jpg
is this to do with a GD library or is it something else? i have compared both php files for the wamp and the remote and they both look to be fine
my wamp server php file calls the image like this
$imagePath = (isset($imagePath) && trim($imagePath) != "" ? urldecode($imagePath) : 'noimage.jpg');
$imagePath = 'wamp/itinwales/webstore/images/product_images/'. $imagePath;
header('Content-type: image/jpeg');
if (fileExists($imagePath)) {
resizeImage($imagePath, $new_height, $new_width, $newHeight, $newWidth);
$destimg=ImageCreateTrueColor($new_width,$new_height) ;
$srcimg=ImageCreateFromJPEG($imagePath) ;
ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $new_width, $new_height, ImageSX($srcimg), ImageSY($srcimg));
imagejpeg($destimg);
}
- $imagePath = (isset($imagePath) && trim($imagePath) != "" ? urldecode($imagePath) : 'noimage.jpg');
- $imagePath = 'wamp/itinwales/webstore/images/product_images/'. $imagePath;
- header('Content-type: image/jpeg');
- if (fileExists($imagePath)) {
- resizeImage($imagePath, $new_height, $new_width, $newHeight, $newWidth);
- $destimg=ImageCreateTrueColor($new_width,$new_height) ;
- $srcimg=ImageCreateFromJPEG($imagePath) ;
- ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $new_width, $new_height, ImageSX($srcimg), ImageSY($srcimg));
- imagejpeg($destimg);
- }
which brings thru the image i want to see.
my remote server brings the image like this
$imagePath = (isset($imagePath) && trim($imagePath) != "" ? urldecode($imagePath) : 'noimage.jpg');
$imagePath = 'http://www dot itinwales dot co dot uk/webstore/images/product_images/'. $imagePath;
header('Content-type: image/jpeg');
if (fileExists($imagePath)) {
resizeImage($imagePath, $new_height, $new_width, $newHeight, $newWidth);
$destimg=ImageCreateTrueColor($new_width,$new_height) ;
$srcimg=ImageCreateFromJPEG($imagePath) ;
ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $new_width, $new_height, ImageSX($srcimg), ImageSY($srcimg));
imagejpeg($destimg);
}
- $imagePath = (isset($imagePath) && trim($imagePath) != "" ? urldecode($imagePath) : 'noimage.jpg');
- $imagePath = 'http://www dot itinwales dot co dot uk/webstore/images/product_images/'. $imagePath;
- header('Content-type: image/jpeg');
- if (fileExists($imagePath)) {
- resizeImage($imagePath, $new_height, $new_width, $newHeight, $newWidth);
- $destimg=ImageCreateTrueColor($new_width,$new_height) ;
- $srcimg=ImageCreateFromJPEG($imagePath) ;
- ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $new_width, $new_height, ImageSX($srcimg), ImageSY($srcimg));
- imagejpeg($destimg);
- }
this coding returns "www dot itinwales dot co dot uk/image.php?bigImg=LAMPNEC64.jpg" in a text format on the browser. how can i rectify this?
thank you for your time