PHP stands for “Hypertext Preprocessor“, is a server-side scripting language used to create dynamic Web pages. This can be embedded to HTML pages. This is very easy scripting language compare to other scripting languags. The goal of the language is to allow Web developers to write dynamically generated pages quickly.
PHP supports many databases like MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.
You no need any software to write this php codes. Yo can write in a basic windows notepad.
My first PHP program:
1 2 3 4 5 6 7 | <html> <body> <?php echo "MY First PHP Program"; ?> </body> </html> |
PHP block should written inside <?php and ?> Here echo “MY First PHP Program”; will display “MY First PHP Program” in browser.
Now the time to run this program. Before that you need to install server in your localhost. Learn how in next pages.