You are here: Re: Can GD load an image from another php script? « PHP Programming Language « IT news, forums, messages
Re: Can GD load an image from another php script?

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

> What??? This code is nonsensical!

Ja!!! It's true, but I changed the code to some other:

function create_my_image($w=1, $h=1)
{
$img = @imagecreatetruecolor($w, $h);
if ($img)
{
/* Other stuff here */
}
return $img;
}

and I use it as:

<?php
include("inc/mod_image.php");

if ($my_img = create_my_image(320, 200))
{
/* Other stuff to the image */

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

imagedestroy($my_img);
}
?>

This should work better... or shouldn't?

--
When ignorants were more, everything was better...
(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

 

Navigation:

[Reply to this 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

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