[SOLVED] image loading problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

[SOLVED] image loading problem

Post 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"); ?>">
 
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

Re: [SOLVED] image loading problem

Post by hannnndy »

it just worked a nice bug in my code
Post Reply