Thanks Val!
Now I understand.
Jan
"Val Petruchek" <[EMAIL PROTECTED]> skrev i meddelandet
000801c19f4a$49862950$[EMAIL PROTECTED]">news:000801c19f4a$49862950$[EMAIL PROTECTED]...
>
> in index.html you write
>     <img src=aaa.php>
>
>
> in aaa.php you write
>
> <?php
> $im = @ImageCreate (240, 80)
>    or die ("Cannot Initialize new GD image stream");
> $background_color = ImageColorAllocate ($im, 255, 255, 230);
> $text_color = ImageColorAllocate ($im, 0, 0, 0);
> ImageString ($im, 3, 10, 20,  "Some text..", $text_color);
> ImagePng ($im);
>  ?>
>
> You have to create separate php script for creating image and then use it
in
> you html (php) file.
>
> >
> > Hi!
> > How do I change this if I will use the Image direct in my html-code?
> > Do I need to save it first.
> > <?php
> > $im = @ImageCreate (240, 80)
> >     or die ("Cannot Initialize new GD image stream");
> > $background_color = ImageColorAllocate ($im, 255, 255, 230);
> > $text_color = ImageColorAllocate ($im, 0, 0, 0);
> > ImageString ($im, 3, 10, 20,  "Some text..", $text_color);
> > ImagePng ($im);
> >
> > //this doesn´t work
> > echo "<img src=\"$im\" width=240 height=80>";
> > ?>
> > Thanks in advance.
>
>
>
> Valentin Petruchek (aki Zliy Pes)
> http://zliypes.com.ua
> mailto:[EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to