Page 1 of 1

[SOLVED] image loading problem

Posted: Tue Feb 26, 2008 5:26 am
by hannnndy
hi dear friends
I have a serious problem now working with image class
i have a code like this
in
thumb.php
--------------------------

Code: Select all

$i = new imagethumbnail_corners();
//$i = new imagethumbnail_dropshadow();
//$i = new imagethumbnail_blackandwhite();
$i->open("../_images/".$_GET['imageName']);
$i->setX(100);
//$i->setY(100);
$i->clipcorners();
 
header("Content-type: image/jpeg;");
$i->imagejpeg();
when i call the thumb.php like this
---> http://rama/kankash.com/gallery/_gui/th ... WHqTHR.jpg
it returns a thumb of the jpeg file

the problem is in my personalized code i can not reach the jpeg file via src attribute
like this

usage.php

Code: Select all

 
<img src="<?php echo("http://rama/kankash.com/gallery/_gui/thumb.php?imageName=../_images/longShuts/93133256.6ZWHqTHR.jpg"); ?>">
 

Re: [SOLVED] image loading problem

Posted: Tue Feb 26, 2008 5:27 am
by hannnndy
it just worked a nice bug in my code