I failed to integrate my php code even I put it to blanck file.php and try to load it, it does not work? someone php guru here? the golden CAN dive me that code: <?php $SID="45A8F8CD-ECDA-40DC-BC5A-A70B8E3116A9"; $IPAddress = urlencode($_SERVER['REMOTE_ADDR']); $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']); $Host=urlencode($_SERVER['HTTP_HOST']); $PageURL=urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']); $URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=".$SID; $URL=$URL.'&Host='.$Host; $URL = $URL.'&PageURL='.$PageURL; $URL = $URL.'&IPAddress='.$IPAddress; $URL = $URL.'&UserAgent='.$UserAgent; include($URL); ?>
try this include($URL); changed to readfile($URL); <?php $SID="45A8F8CD-ECDA-40DC-BC5A-A70B8E3116A9"; $IPAddress = urlencode($_SERVER['REMOTE_ADDR']); $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']); $Host=urlencode($_SERVER['HTTP_HOST']); $PageURL=urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']); $URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=".$SID; $URL=$URL.'&Host='.$Host; $URL = $URL.'&PageURL='.$PageURL; $URL = $URL.'&IPAddress='.$IPAddress; $URL = $URL.'&UserAgent='.$UserAgent; readfile($URL); ?>
Hi arrisweb & profusion! Thanks for the Question and the answer. I'm not a programmer. so, I spend around 2hrs to solved this problem. just one word "include" waste my time. anyway thanks both of you. I change include to readfile its working fine. And You have more advantage script link this, or similar but more advantage. please letme know. Regards; Edward