Skip to main content

Posts

Showing posts with the label php basic concept

PHP Basic Concept

What is PHP? PHP stands for "Hypertext processor" and was initially called "personal home page". PHP does not charge users, hence it is free to download and use. PHP is designed for web use as a scripting language and works only with web server. Examples are: Apache, IIS, nginx etc. which means that the PHP script only runs in web servers. It is an HTML-embedded scripting language. Syntax The opening and closing tags of PHP syntax includes: Opening tags: <?php <? <script language='php'> Closing tags: ?> ?> (short tag) </script> Note:  To use syntax 2 of the closing tags, short tags must be turned "on" in php.ini located at the php.ini file. To turn this on use: short_open_tag=on PHP file The extension of PHP file is (.php). The PHP files contains codes from html, css, java script, user text and php code. The method of code execution in PHP is called "sever side code" but when the code is execute...