hey...its working perfectly...but one more thing..
here is ur code:
$strUrl = 'http://www.garmin.com/support/text_out.html';
$fp = fopen($strUrl,'r');
$strContent = fread($fp,10000);
echo $strContent;
now instead of ur path i need to give a varibale. first i need to grab the current url and then print its contents.
i have tried following...
$referer = getenv("HTTP_REFERER");
$strUrl = '$referer';
$fp = fopen($strUrl,'r');
$strContent = fread($fp,10000);
echo $strContent;
but its not working ..its giving me following error...
Warning: fopen("$referer","r") - No such file or directory in /home/sites/site8/users/shweta/web/recommend1.php on line 80
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site8/users/shweta/web/recommend1.php on line 81
ERROR: Nothing parsed, nothing printed
what wrong??
waiting...
thanks
Shweta.
😕