I used to use XAMPP on a Windows Computer to see how my homepage (php) works. Everything works fine without any issues.
I now installed XAMPP on my Notebook which runs on Linux. Installation went fine without any problems. When I open http://localhost I connect to the "Welcome-Dashboard".
I moved the EXACT same data in htdocs and tried to open the documents but an error occurs: Parse error: syntax error, unexpected 'version' (T_STRING) in /opt/lampp/htdocs/..../index1.php on line 1
Sometimes a different error (without changing files) occurs. Somethng about "T_STRING" error. I couldnt trigger it right now. For me it seems there is nothing wrong with the files - maybe I didnt setup XAMPP correct on my Linux(?)
I am using Ubuntu 15.10.
Thank you very much.