What is PHP used for ? What is the main use of PHP ? What is difference between HTML and PHP ?
PHP which stands for Hypertext Preprocessor is a scripting language that is used by a wide audience, and can be embedded in HTML, designed specifically for development on virtual sites.
Notice how different a PHP script is from languages like Perl or C. Instead of writing a lot of code to create HTML code, you write PHP code that does what you want and embed it into the HTML code (in this example, the job is to write on the screen). PHP code is written between <? Php and?> Special start and end tags. These tags allow you to easily enter and exit “PHP mode”.
What distinguishes PHP from user-side languages such as Javascript is that it is run on the server side. If you run the code in the above example on your own server, users who connect to your site will not be able to see the code and intervene, only the result. If you wish, you can even make your HTTP server view and process all your HTML files as PHP files. However, users may not realize that you are actually using a server-side application.
One of the great things about using PHP is that it is very easy to learn for new users and also includes advanced features for professional users. Don’t be afraid to read PHP’s long list of features. You can start programming with PHP in a short time and start writing simple programs in a few hours.
Although the development of PHP has focused on server-side programming, it also has tools that allow you to do much more. What can PHP do? You can find more information about these tools in section. If you are only interested in site programming, you can continue with a simple tutorial section.
Unlike HTML, PHP is a web programming language.