Hi:

This is probably an obvious question, but after you create an image, how can you include another php script?

For example, if my code ends like so:

header("Content-type: image/png"); // Set display mode as PNG
imagepng($im); // Display image
imagedestroy($im); // Delete image from memory cache
?>

How can I redirect program flow to the next script, such to include "part2.php";

If I place an include statement after imagedestroy statement, nothing happens.

I suspect that it's because I have already set and sent the header -- so, is there a way for me to reset the header so that I can launch the next script?

Many thanks for any replies.

tedd

--
--------------------------------------------------------------------------------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to