i am trying to cut and paste a php script that has been posted in an html page. the author of the script helpfully reminds me "If you copy'n'paste the code from this page, please remember to remove the font tag!" i guess that means that he had to do something to the PHP so that it would display like a text instead of working like a script. can someone tell / show me what I need to do to make the script work?
Quote:
#CMSimple $t=array(array("bp_cmsimple.png","http://www.cmsimple.dk"),array("cms_powered.png","http://www.cmsimple.dk/demo/"),array("cmsimple80x20.png","http://www.cmsimple.dk/forum"));$i=rand(0,count($t)-1);$output=preg_replace("/".chr(35)."CMSimple.*".chr(35)."/",chr(60).'a href="'.$t[$i][1].'"'.chr(62).chr(60).'img src="./images/'.$t[$i][0].'"'.chr(62).chr(60).'/a'.chr(62),$c[$s]);#
|