I am seeing this error on front page of one of my website
Parse error: syntax error, unexpected '< Some code has been hidden for security* but the source of that error is index.php. On examining my index.php i see a line of code referncing index_old.php. The code on the that file is as shown
<html> <head></head> <body> <?php $ip=$_SERVER["REMOTE_ADDR"]; $logfilename1=dirname(__FILE__).'/htaccess.log'; $fp2=fopen($logfilename1,"a"); fwrite($fp2,$ip); fwrite($fp2," ".$_SERVER["SERVER_ADDR"]." ".$_SERVER["HTTP_HOST"]); fwrite($fp2," ".$_SERVER['HTTP_USER_AGENT']); fwrite($fp2," ".strftime('%c')."\r\n"); fclose($fp2); ?> </body> </html> I am cracking my head to find out if the site has been infiltrated or injected with suspicious scripts. Could anyone help me figure out this?