PHP: Difference between revisions

Jump to navigation Jump to search
180 bytes removed ,  28 September 2010
Remove legacy information.
mNo edit summary
(Remove legacy information.)
 
Line 20: Line 20:
* Type this PHP code into the file
* Type this PHP code into the file


#!/usr/local/bin/php
  <?php
  <?php
     echo "Hello World!";
     echo "Hello World!";
  ?>
  ?>
Notice the use of the hashbang (or shebang - yes, make all the jokes you want), which must be present at the top of every PHP file.
#!/usr/local/bin/php


* Save and exit (CTRL + O, CTRL + X)
* Save and exit (CTRL + O, CTRL + X)

Navigation menu