![]() On Debian based GNU/Linux distros, you can install by : sudo apt install php ![]() PHP can be installed with or without a web server. PHP code is enclosed between the tags and can then be embedded into HTML. Skipping the compilation step makes the development process much faster. ![]() This means that when you make changes to your source code you can immediately test these changes, without first needing to compile your source code into binary form. For this reason, you cannot see the PHP code of a website, only the resulting HTML that the PHP scripts have produced. The web server then sends the processed HTML back to you (which is where 'Hypertext Preprocessor' in the name comes from), and your web browser displays the results. Instead, the form data or request for the web page gets sent to a web server to be processed by the PHP scripts. For example, if you complete a form on a website and submit it, or click a link to a web page written in PHP, no actual PHP code runs on your computer. The largest Social Networking Platform, Facebook is written using PHP How does PHP work?Īll PHP code is executed on a web server only, not on your local computer. Restricting access to certain pages of your website.Setting and working with website cookies.Processing and saving user input from form data.For example, if you have a blog website, you might write some PHP scripts to retrieve your blog posts from a database and display them. Typically, it is used in the first form to generate web page content dynamically. Websites and web applications (server-side scripting).It is typically used on websites to generate web page content dynamically. What is PHP used for?Īs of October 2018, PHP is used on 80% of websites whose server-side language is known. PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP is a server-side scripting language created in 1995 by Rasmus Lerdorf.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |