i have this running random links on my site
is there any way a can convert the code to us links that actualy contain [url]http://[/url] twice?
i have a traffic trading script and it calls up the script like this
http://www.domain.com/cgi-bin/out.cgi?gal80url=http://www.galpage.com
<?php
// En: Begin PHP Code / Fr: Debut code PHP
/***************************************************************************\
Random Link Version 1.0
Copyright 2000 Frederic TYNDIUK (FTLS) All Rights Reserved.
E-Mail: tyndiuk@ftls.org Script License: GPL
Created 02/28/2000 Last Modified 02/28/2000
Scripts Archive at: http://www.ftls.org/php/
****************************************************************************/
// Necessary Variables:
$RANDOM_URL_FILE = "list_url.txt";
// En: Absolute path and name to file contain URL location.
// Fr: Chemin absolu (complet) et Nom du fichier contenat les URL.
// End Necessary Variables section
/******************************************************************************/
srand((double)microtime()*1000000);
if (file_exists($RANDOM_URL_FILE)) {
$arry = file($RANDOM_URL_FILE);
// En: load file.
// Fr: charge le fichier.
for($i = 0; $i < sizeof($arry) ; $i++) {
if (preg_match("/http:/", $arry[$i]))
$good_arry[$j++] = chop($arry[$i]);
# PHP 4.0 arry_push ($good_arry, $arry[$i]);
}
if ($good_arry) {
header("Location: ".$good_arry[rand(0, sizeof($good_arry) -1)]);
} else {
echo "error no good URL";
}
} else {
echo "error: can't open $RANDOM_URL_FILE file";
}
// En: End PHP Code
// Fr: Fin code PHP
?>
</HTML></BODY>