$image = imageCreateFromGIF("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?clrimg');
how can i make that point to the file within the site.
not http
Printable View
$image = imageCreateFromGIF("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?clrimg');
how can i make that point to the file within the site.
not http
Save it as a php file, then use an img tag:
Code:<img src="phpimage.php">
that did not work
You can't, the "file" isn't an image, it's the output of a script. The image data is embedded (base64-encoded) in the PHP file, if I remember correctly.
You can, if it has a Content-Type header of Image.
PHP Code:header("Content-Type: image/gif");
No, since unless it's accessed via HTTP, the script won't be executed, and the function will be trying to parse the script text as a GIF image.
The script returns a GIF file if you do it correctly.
Then run it through HTTP. Do it some roundabout way if needed...
That's what's already happening, from the look of it.
Ah, missed that.
Well, problem simplified to no point in trying to 'fix' it as the solution seems present already.
What's wrong with using http anyway?
if u go to japantown.awardspace.com/generalchat.php?frames an try to select a color an error comes up
i did something to japan chat so it has diff error messsages, so ignore those