These packages are called as LAMP (Linux, Apache, My SQL, PHP) for Linux operating system.
WAMP (Windows, Apache, My SQL, PHP ) for windows operating system.
Then install and configure these packages
Getting Started with PHP If you choose PHP as your development language, what you need to get started depends on:
• Sound knowledge of HTML.
• Sound Knowledge of SQL
• Access to a web server that have Apache, My SQL and PHP configured and installed on your machine.
To check weather WAMP OR XAMPP is working enter http://localhost/xampp/ in your Web browser. The page will displayed as given below:
PHP Syntax: <? php écho 'Hello PHP'; ?>
The nomenclature <? Php?> That makes the web server passes this portion of code to your PHP module
Note also the built-in PHP "echo" that enables printing to the screen
PHP can also be "mixed" in the HTML, which is convenient but not recommended
PHP Operators The most common PHP operators are
PHP Variables A variable in PHP is always preceded by the dollar sign: $So to declare a variable we can write: $ myVar = 'value';Note that the semicolon at the end is required at the end of each statement
A string variable is used to store and manipulate a piece of text. To declare a string we can write: <?php $text_str= “Hello World!”; echo “$text_str” ; ?>
PHP Arrays By providing the values as arguments to the array() function: