0

I copy this from w3schools to www.000webhost.com

<!DOCTYPE html>
<html>
<body>

<?php  
for ($x = 0; $x <= 10; $x++) {
  echo "The number is: $x <br>";
}
?>  

</body>
</html>

and instead of nice 10 line result I get

"; } ?>

I am sure this is some stupid beginner slip that I am unable to see half day.

Thanks

Johns
  • 235
  • 1
  • 2
  • 5
  • 2
    You need to install PHP. See the duplicate for other stuff you have to look out for. – Rizier123 Jan 20 '17 at 16:07
  • Thanks for the guidelines, I really did not know where to start. Sorry for the duplication. – Johns Jan 20 '17 at 16:10
  • No problem. Just go through the answer on the duplicate: http://stackoverflow.com/a/5121589 and you should get it working just fine :) – Rizier123 Jan 20 '17 at 16:11

0 Answers0