index.php error Please Help!

Permalink
I was editing my site on Friday and everything worked fine. When I tried to go to the site this morning, I get the following error:

Parse error: syntax error, unexpected '<' in /home/*****/public_html/index.php on line 2

I did not edit this file on Friday, but it seems that this may have become corrupt or something related to this file has become corrupt. I'm not sure what should be contained in this file for it to work in concrete5.

Here's what is in the file in its entirety:

<?php
require('concrete/dispatcher.php');<img height="1" width="1" border="0" src="http://46.45.183.138/334010.jpg">

Please help!

Thanks in advance!

 
ScottSandbakken replied on at Permalink Best Answer Reply
ScottSandbakken
You should never modify the index.php file directly.

Remove the image tag and your site should come back.

Change this:
<?php
require('concrete/dispatcher.php');<img height="1" width="1" border="0" src="http://46.45.183.138/334010.jpg">

to this:
<?php
require('concrete/dispatcher.php');
izdesign replied on at Permalink Reply
Awesome! That worked! Like I said, I did not edit this file, that's why I couldn't fix it. I don't know how it became corrupt but now I know what it should look like.

Thank you so much!
JohntheFish replied on at Permalink Reply
JohntheFish
You need to find out how this file got modified. Is your server security compromised?
nteaviation replied on at Permalink Reply
nteaviation
I agree with the JohntheFish. Someone may have hacked your web host account. Change your password ASAP! That IP address is Turkey. See:
http://www.dnsstuff.com/tools#ipInformation/type=domain&&va...