[Site Home] [Forum Home] [Articles] [File DB] [News Archives]

General PC Talk -> Dynamic sig problem


(View original topic)


Red Squirrel - Jun-30-2004 server time
hmm weird. Put a file with invalid php in there to see what happends (see if there's a parse error, or if it just spits out the code, or whatever)

masq - Jun-30-2004 server time
Ive got apache and php on my slackware box.
server is override all.

made folder called "sigs" for fake sigs and put .htaccess in there with the force php line, and then made a fake sig.png with these contents:

<?php
header("Content-type: image/png");
header("Cache-Control: no-cache, must-revalidate, no-store");
$im = imagecreatefrompng("http://skullnet.darktech.org/webpics/sheepdog.png");
$color = imagecolorallocate($im, 255, 255, 255);
$px=100
$py=100

$string = "testing";
imagestring($im, 2, $px, $py, $string, $color);
imagepng($im);
imagedestroy($im);
?>

-----------------

So now if i go: http://skullnet.darktech.org/sigs/sig.png
it should work yes?

cos i just get a blank page.

any ideas?

(Showing 50 last posts, newest on top)