I am a complete moron when it comes to PHP, and I can't figure out whats wrong with this script:
Code:
<?php
header("Content-type: image/png");
$fp = fopen("http://www.audiomatch.net/text/XxXoldsaltXxX.txt", "r");
$content = ($fp, 10000000);
fclose($fp);
if(eregi('.*.', $content, $output)){
function get_string($text){
$text = substr($txt, 9, -2);
$im = ImageCreateFromPng("$DOCUMENT_ROOT/music.png");
$red = ImageColorAllocate($im,255,0,0);
ImageTTFText ($im,10,0,5,15,$red,"kilroywashere.ttf",$text);
ImagePNG($im);
ImageDestroy($im);
}
}
?>