Re: image commands (again)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Google Kreme wrote:
> On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote:
>> Content-type: image/
>>
>> the browser expects only the image to output to the screen and no HTML
> 
> As if should.
> 
> Save the image in a temporary location and then send html that include
> and <img ... /> tag

You don't need to do that.  You can just call the PHP script directly
from the img tag.  Your only problem is how to pass the parameters.  You
obviously can't do a POST request from the img tag, so you either need
to pass the parameters as part of the url as in:

  <img src="image.php?text=foo&size=10" />

Or you use a cookie-based mechanism like a PHP session and refer to that
from the image.php script.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux