The best method for fixing “parse errors” is to find the line which PHP is saying caused the error.

Parse error: parse error, unexpected T_STRING in /home/virtual/site5/fst/var/www/html/akash/errors.php on line 1

As you can see in the example above the number displayed at the end saying “on line 11” is the suspected location of the error. To find this line you can count down the lines of code including white space (made by the return key) to located the suspected line.

If you notice that you have missed one of the semi-colons “;” then inset one and test the code once more to see if all the errors have been resolved

However if the line number mentioned happens to be at the end of your code, then you will have to go back and look through out all your code to see if all the { } and “ ” are set up properly

To find them more easily you can use the find facility that is available in most editors including notepad for windows.

If you have a more sophisticated editor they usually highlight anything inside the quotation marks “ “ a different colour. If you like to make your code laid out in the right manner then you can use tab on all the { } to make sure they line up as this will allow you to spot the missing brackets quickly

thanks