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



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()?


DONE!!! DONE!!! AUHAUHAUHAUHAUHAUHA LOOOOOOLLLLL :)

function mystuff($width=1, $height=1)
{
  $img = imagecreatetruecolor($width, $height);
  /* stuff here */
  imagepng($img);
}

$img = imagecreatefromstring(mystuff(320, 200));
header("Content-type: image/png");
imagepng($img);
imagedestroy($img);

That's cool!!! :)

Thanks everybodyyyyyyyy!!!
:) :) :) :)

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



Relevant Pages

  • Re: High Scores
    ... If you want to view High scores it returns Could Not load scores ... here is the PHP script ... Edit the game Flash file to point to this file on your server ... >> And the PHP script is here ...
    (alt.php)
  • Re: limiting include scope?
    ... why does this need to involve loading and running every PHP script ... the currently viewed one have any output or affect any session variables in any way? ... surely it's far more efficient to have your main script just load (or ... Erik Ekedahl wrote: ...
    (alt.php)
  • Re: Sorting images based on dimensions into folders.
    ... Load it and retrieve the dimensions used. ... I did start on a php script for the job, ... Since you got some 11.000 plus posts at msdos.bat ... Remove "z" to email personal messages) ...
    (microsoft.public.scripting.wsh)
  • Re: Decoding html pages
    ... the HTML code that the PHP engine produces *from* the raw html code and that ... That's the case with practically any PHP "page" (or any by a ... server-side script generated page for that matter). ... Of course the script does load, when you load the proper page (else it would ...
    (comp.lang.javascript)
  • Re: Moving variable form Javascript to PHP?
    ... > Sample fo the html code: ... Change the form action to a PHP script that will handle your input. ... the "alert" line in the javascript. ...
    (comp.lang.php)