";
// $_REQUEST[gcst] = str_replace(" ","+",$_REQUEST[gcst]);
//echo "now $_REQUEST[gcst]";
//echo $PageURL;
//$PageURL = preg_replace("/gcst%3D(.*)%26/","gcst%3Dmade%20in%20usa%20$1%26",$URL);
$URL = $URL.'&PageURL='.$PageURL;
} else {
//echo "here $_REQUEST[gcst]
";
// $_REQUEST[gcst] = str_replace(" ","+",$_REQUEST[gcst]);
//echo "now $_REQUEST[gcst]";
//$URL = preg_replace("/gcst%3D(.*)%26/","gcst%3Dmade%20in%20usa%20$1%26",$URL);
//echo $PageURL;
$URL = $URL.'&PageURL='.$PageURL;
$URL = preg_replace("/gcst%3D(.*)%26/","gcst%3Dmade%20in%20usa%20$1%26",$URL);
}
}
//DANNO ADDED
///Try
// $URL = str_replace("%20","+",$URL);
// $URL = str_replace(" ","+",$URL);
// echo "url here $URL
";
// echo "uri here ".urldecode($URL)."
";
$lines = file($URL);
//$lines = file("http://si.goldencan.com/GetData.aspx?ver=2.0&SID=C34FF132-1A32-4B65-8988-E7E3C37ECECC&Host=madeinusa.xgig.com&SearchText=made+in+usa&IPAddress=75.164.221.6&UserAgent=Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%3B+rv%3A30.0%29+Gecko%2F20100101+Firefox%2F30.0&PageURL=%2Findex.htm%3F");
// echo "lines is $lines
";
// print_r(array_values($lines));
//print_r ($lines[1]);
$_SESSION['l']=$lines;
function danno ($go){
foreach ($_SESSION[l] as $line) {
/**/
//echo "hereeach";
//$line = preg_replace("/\?gccid=(.*)/e","aaa",$line);
//Initial fixes
//$line = preg_replace("/gcst=(.*)&/","$1",$line);
$line = preg_replace("/index\.htm\?gcstype=&gccid=([0-9]*)/","$1.htm",($line));
//Replaces page nubers of listings
$line = preg_replace("/index\.htm\?gccid=([0-9]*)\&\;gcp=([0-9]*)/","$1_$2.htm",($line));
//Replaces brands and categories
$line = preg_replace("/index\.htm\?gccid=([0-9]*)/","$1.htm",($line));
///Get rid of store names
$line = preg_replace("/
|
||||||||
|
|
|||||||
Copyright madeinusa.xgig.com echo date(Y); ?> | Online Mall | DynaWeb Designs | Affordable Web Hosting |