PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I cant use imagegif() function (I read about what happened with gif format), but that is all my book has examples with, what other functions do I use to show as JPG or PNG?
<?php
$id = imagecreate(200, 200 );
print $id; //this works, but after this, how do I show the 200x200 box
?>
<html>
<head>
<title> .:DynaMo` grafX:. </title>
</head>
<body>
<img src="grafx.php" alt="PHP generated">
</body>
</html>
But this out puts an image with image headers so you cannot call it from with a php script. You will need to do something like this, create a script that will only output your image and then call that script as you would a normal image.