Reply to Re: Can GD load an image from another php script?

Your name:

Reply:


Posted by Darkbyte [Work] on 10/10/07 11:36

> Well, you could do it with the absolute HTTP URL, i.e.:
>
> imagcreatefrompng("http://example.com/blah/foo.php");

Oh yes, I already was doing it... I just was looking for another way to
force imagecreatefrompng() to "execute" my script rather then read it...

[cut]

> A more sensible, programmatic way of doing this is to put the
> image-creation stuff from foo.php into a function in an include() file,
> and then call it from foo.php and goofy.php.

Aehm... I'm using my foo.php script in the html code:

<img src="/blah/foo.php?width=320&height=100" border="0" />

Assuming I'm going to put the stuff into a function, and assuming I'm
going to create a php script that just calls that function so I can load
the image directly from html code, how can it help me with
imagecreatefrompng()?
How could I use the function with imagecreatefrompng()?

--
Quando noi ignoranti eravamo di più, tutto era più bello...
(A. Celentano)

Per rispondermi in privato:
s e p r a n o(punto)a n t o n i o(chiocciola)l i b e r o(punto)i t

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация