I am trying to create a script that opens, reads, and checks a submitted URL for a reciprocal link. This is what I've written so far:
<?
$mypage="http://yahoo.com";
$checkpage = fopen($submittedURL, 'r');
while(!feof($checkpage)) {
$buffer = fgets($checkpage, 80); //this is the contents of the page
if (strstr($buffer,$mypage)) {
echo "thanks for adding my link";
}
else {
echo "Please link to me etc etc etc"; }
?>
It does not work. I get this error each time:
Parse error: parse error in /home/start/public_html/test/results.php on line 11