it's p. 601 or around there. no, it didn't work, that's why i'm asking the question.
and darncat: I'm just running it off my home computer, and i have taken the semi-colon out (in php.ini) and changed the extension.
I'm just trying to make a rectangle appear and I'm using the code (only a variable name change and a color change were made) example in the Core PHP book I bought:
<?php
$image = imagecreate(200,200);
$buttoncolor = imagecolorallocate($image,191,241,113);
imagefill($image, 0, 0, $buttoncolor)...
i'm trying to get an image to appear, so i did:
header("Content-type: image/jpg");
imagejpeg($image);
I get the following error: Warning: Cannot modify header information - headers already sent by (output started at C:\Documents and Settings\Owner\Desktop\PHP Files, etc\-:13) in C:\Documents...
I've been trying for a couple of hours to get the GD library to work, but haven't had any success at all.
To start, it said that imagecreate() was an undefined function, so I think that means I don't have the GD library installed or whatever you've got to do with it to make it work. So I put...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.