-
Several "headers"
Found the solution with: "if (isset($_GET['im']))"
----------------------------------------------------------------------
I've read FAQ and tried several things, but can not get this to work ...
How get I use several e.g. GD 2 scripts at the same page? like this:
<?php
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'test1', $text_color);
header('Content-type: image/jpeg');
imagejpeg($im, NULL, 75);
imagedestroy($im);
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'test2', $text_color);
header('Content-type: image/jpeg');
imagejpeg($im, NULL, 75);
imagedestroy($im);
?>
I'm new at PHP, jumping right from ASP ...
rgrds,
Last edited by jovovich; 10-14-2008 at 09:30 AM.
Reason: Solved
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks