
June 20th, 2000, 10:49 PM
|
 |
Banned (not really)
|
|
Join Date: Dec 1999
Location: Brussels, Belgium
|
|
|
I would think it would have to return an image, otherwise you'll get that broken link picture. if you make it 1x1 pixels, that would kind of hide it. I'm curious why you would want to call a php file from the src tag of an img? can you share anymore info?
to call the file, use
<img src="button.php3?text">
From the php manual of what button.php3 could look like:
1
2 <?php
3 Header("Content-type: image/gif");
4 $string=implode($argv," ");
5 $im = imagecreatefromgif("images/button1.gif");
6 $orange = ImageColorAllocate($im, 220, 210, 60);
7 $px = (imagesx($im)-7.5*strlen($string))/2;
8 ImageString ($im,3,$px,9,$string,$orange);
9 ImageGif($im);
10 ImageDestroy($im);
11 ?>
12
---John Holmes
|