Well lets see how we can describe this. My host is with godaddy, which is just up in the air right now till my store is finished then ill find a real host. Anyways. All I did was remove one domain and reset a new domain to the server. So in essence the file structures are identical, no paths changed.
My rotator scripts have no paths, there was no install, the script is
<?
@srand((double)microtime()*1000000);
function bannerG($select, $host, $host2)
{
$attempted = true;
$lines = @file("rotater_a.txt");
$count = @count($lines);
$random = @rand(0,$count-1);
$selected = $lines[$random];
$pieces = @explode(",", $selected);
$max_attempts = 3;
$attempts = 0;
IF ($host == $pieces[0] AND $attempts <= $max_attempts OR $host2 == $pieces[0] AND $attempts <= $max_attempts) {
++$attempts;
bannerG ("display", $host, $host2);
}
ELSE {
echo ("<center><A HREF=\"$pieces[0]\"><IMG SRC=\"$pieces[1]\" BORDER=0 class='productrandomimage'></A></center>");
}
}
$host = "http://" . $_SERVER[HTTP_HOST];
$host2 = str_replace("www.","",$host);
IF (!isset($attempted))
{
bannerG ("display", $host, $host2);
}
?>
It links to a text file that just has a link, image file. Ive tested both of the urls and both link and image show up perfectly. It worked fine prior to me changing the domains. Im not sure what changed that is breaking these.