Fallen at the first hurdle ...
Posted: Sun Mar 06, 2011 5:31 am
Hi, My attmpts at learning PHP are moving very slowly. My very first Hello World program is not working correctly. This is the code :
When I go to the page in a web browser I get
Hello World"; echo "
This is a test...
"; ?>
This is in Chrome, in IE the page is simply blank. What's going on? I thought it may have something to do with unix style CF/LR characters versus windows style. I'm using Notepad++ and have tried saving the file with both styles but still the same probelm. Any other suggestions?
The php file in question is here : http://www.hareti.co.uk/helloworld.html
Thanks for any help ...
Code: Select all
<?php
echo "<h1>Hello World</h1>";
echo "<h1>This is a test...</h1>";
?>
Hello World"; echo "
This is a test...
"; ?>
This is in Chrome, in IE the page is simply blank. What's going on? I thought it may have something to do with unix style CF/LR characters versus windows style. I'm using Notepad++ and have tried saving the file with both styles but still the same probelm. Any other suggestions?
The php file in question is here : http://www.hareti.co.uk/helloworld.html
Thanks for any help ...