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

Your name:

Reply:


Posted by Darkbyte [Work] on 01/03/06 21:57

Hi everybody!!!
I have a script (foo.php) which uses GD to create an image and sends it
to the browser:

<?php
$img = imagecreatefrompng("mypng.png");

/* other stuff */

header("Content-type: image/png");
imagepng($img);

imagedestroy($img);
?>

I also have another php script: goofy.php.
How can I use imagecreatefrompng to load the result of foo.php (without
saving it on the hard disk first)?

I tried with: imagecreatefrompng("foo.php") but doesn't work...
Can anyone help me, please?

I'm sorry for my bad english...

--
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

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