I now want to demonstrate that it will work when I write a very simple test programme. The programme is:-
- Code: Select all
<?php
echo “Hello World!”;
?>
Each time I try, I get the error:-
- Code: Select all
Parse error: syntax error, unexpected 'World' (T_STRING), expecting ',' or ';' in /Applications/XAMPP/xamppfiles/htdocs/hello.php on line 2
I am using a Macbook Pro running OSX 10.10.5 and Xampp version 5.6.15-1.
I wrote the programme with my Mac’s Textedit and have checked that it is producing plain text and using Unicode (UTF-8) but somehow Apache appears to be misinterpreting the inverted commas. Both appear to me to be the correct start/finish version.
I imagine this is a very basic simple problem but I have been struggling for two days and any help would be gratefully received.