-4

I'm wondering why I cannot display the simple "hello world" using php language.

This is how my code looks like:

<?
 echo "Hello world";
?>

and this is how the output come out in the browser, nothing display:

enter image description here

wasmup
  • 14,541
  • 6
  • 42
  • 58
runeza
  • 5
  • 6

1 Answers1

2

You need to make sure following things for executing php file.

  • Php tag should be properly open and close <?php ... ?>
  • You xampp server is properly running.
  • You are accessing file by putting correct path.
Ayaz Ali Shah
  • 3,453
  • 9
  • 36
  • 68
  • i got it. Thank you so much.. I did not notice that at all. Silly mistake. I follow the tutorial in youtube but didn't notice that php – runeza Jul 09 '17 at 13:09