Php: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 2: Line 2:
* Server side programming language
* Server side programming language


[[file:LAMP.jpg]]
[[file:LAMP.jpg | 640px ]]


* frameworks
* frameworks

Revision as of 22:41, 21 April 2013

  • Server side programming language

File:LAMP.jpg

  • frameworks
  • php.net
  • LAMP
  • mixing
  • error logs /cat /var/log/apache2/error.log / run file


<!DOCTYPE html>
<meta charset=utf-8>
<title>PHP Test</title>
<?php
 echo 'Hello World';
?>


function myFunction() { //declares a function, this is named myFunction
 return 'John Doe'; //returns the value 'John Doe'
}

echo 'My name is ' . myFunction() . '!'; //outputs the text concatenated with the return value of myFunction.
 //myFunction is called as a result of this syntax.
//The result of the output will be 'My name is John Doe!'