Re: drawing images and text



csteph2004@xxxxxxxxx wrote:
I may be wrong (not played with GD for quite a while), but I *think*
you just use a normal HTML <img> tag in the page to reference the
script which draws the image.

<img src="myimagescript.php?whatever=parameters"/>

Correct. Use two PHP pages, one producing HTML and one producing JPEG (or PNG, for that matter). The HTML page can reference the image (which was produced by PHP) as if it was a normal image.
.



Relevant Pages

  • Re: Warning: session_start(): Cannot send session cookie - headers already sent by
    ... You cannot have any output before the session (including normal HTML ... Try re-organising as follows; ...
    (comp.lang.php)
  • Re: Dividing PHP and HTML - maybe easy
    ... > Best way to divide out the HTML and PHP in some code I inherited. ... > you can reference another file which contains HTML to be displayed ...
    (comp.lang.php)
  • Re: HELP - Cant change Include Path
    ... Here is my php.ini path for the php.ini in both php and sql dirs: ... which did work on the remote linux server and sent me some mail ... Although my gmail acct picked the mail up as ... an attachment instead of as html - but gmail is really wierd about ...
    (comp.lang.php)
  • Re: How do we get there from here?
    ... > then sub the whole of that generated markup into the template? ... layed out on the fly, a simple IMG tag, or even an entire HTML document. ... PHP scripting provides 10 times the features of both of these ... idea as tokens can eliminate a huge amount of maintance, ...
    (comp.databases.pick)
  • Re: query string passing woes........ help... please....
    ... |> | offer any help other than saying that my validation could be FAR more ... I'm a total newbie at php. ... The easiest way for you would be to make the html form called form.php ... $_SESSION array using the same names. ...
    (alt.php)