Reply to Re: [PHP] dynamic image will not print properly

Your name:

Reply:


Posted by Andy Pieters on 04/06/05 00:35

To test,

cstl.php?dk=somethinghere

and try to print that?


Maybe your browser is configured to NOT print images (or bakckground) ?
Maybe your printer is textonly (just kidding)

Tada


Andy

On Tuesday 05 April 2005 23:26, DuSTiN KRySaK wrote:
> Hi there - I had my first crack at creating a dynamic image. The thing
> is - the image is displayed fine in the browser, but when you go to
> print it, the image is either missing, or part of it is missing. Is
> there something special needed to print a dynamic image?
>
> Here is a code snippet used to create the image....
>
> header("Content-type: image/jpg");
> $image = imagecreatefromjpeg("template_cpn.jpg");
> $red = imagecolorallocate( $image, 255,0,0 );
> imagestring($image, 2, 306, 200, $couponcode, $red);
> imagestring($image, 2, 306, 235, $exp, $red);
> imagestring($image, 2, 175, 338, $myname, $red);
> imagestring($image, 2, 175, 360, $myemail, $red);
> imagejpeg($image);
> imagedestroy($image);
>
> Now the way I have it set up, is that there is a PHP file that
> generates the image (the above code). Then I have a parent PHP page
> that calls that page like so:
>
> $theurl = "cstl.php?dk=soemthinghere
> echo "<img src=\"$theurl\">";
>
> See any issues in my code or setup?
>
> Any ideas?
>
> d

--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I released under the GPL2 and
that are meant for use with a php cli binary:
http://www.vlaamse-kern.com/sas/
--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация