Difference between revisions of "PHP"

From Redbrick Wiki
Jump to navigation Jump to search
m
(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)

Latest revision as of 20:45, 28 September 2010