Where it states the links in the array as <a href = "$site1">, thats what its out putting it as..so the link the browser is looking for is http://rytek.info:81/pegasus/$site1
Any Ideas?
Code: Select all
<?
///////////////////////////////////////////////////
// Script by Andy Howard from //
//Pegasus WebPages //
//e-mail: pegasus@postnuclear.net //
//website: http://rytek.info:81/pegasus //
// //
//Links v1.0 //
//-----------------------------------------------//
//Free for distripution and Copy //
//If you change it for the better //
//Please e-mail it to me //
//////////////////////////////////////////////////
//----------------------------------------------
//Enter the Address of the Sites
//e.g. $site1= "the address of the site";
$site1 = "http://rytek.info:81/";
$site2 = "http://www.postnuclear.net/";
$site3 = "http://www.annihilation.info/";
$site4 = "http://www.zerovoid.net/";
$site5 = "http://www.deviantart.com/";
//You can add more links, all you have to do is copy and paste and change the # ($site#) to continue up
//----------------------------------------------
// Change the number to the highest number from above
$topnumber = "5";
//----------------------------------------------
//Enter the Text of the quote:
//e.g. <a href = "$site1">YOUR TEXT HERE</a>
$test = array(1 => '<a href = "$site1">http://rytek.info:81/</a>',
2 => '<a href = "$site2">http://www.postnuclear.net/</a>',
3 => '<a href = "$site3">http://www.annihilation.info</a>',
4 => '<a href = "$site4">http://www.zerovoid.net/</a>',
5 => '<a href = "$site5">http://www.deviantart.com/</a>');
//----------------------------------------------
//Don't change this.
$rand = rand(1,$topnumber);
//----------------------------------------------
//Place this anywhere to print your links
//IMPORTANT IT MUST NOT BE IN THE SAME PHP BRACKETS (<? ) AS THE REST OF THE SCRIPT
//----------------------------------------------
?>
<? echo $testї$rand];?>