What is PHP?


New member
PHP (which stands for PHP: Hypertext Preprocessor) is a scripting language that can be embedded in HTML, specifically designed for development on virtual regions, used by a wide audience.
Okay, but what exactly does that mean? Uniform:
Example 1-an example as a starter
PHP ile ilgili görsel sonucu

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional/ / EN"
< html>
in the <head>
< title>Example < / title>
< / head>
the <body>
echo "Hi, I'm a PHP script!";
< / body>
< / html>
Note how different a PHP script is from a language such as Perl or C. Instead of writing lots of code to create HTML code, you write a PHP code that does the job you want and embed it in the HTML code (in this example, the job done is to write to the screen). PHP code <?php and ?> is written between the custom start and end tags. These tags allow you to enter and exit" PHP mode " easily.

What distinguishes php from user-side languages, such as Javascript, is that it runs on the server-side. If you run the code in the example above on your own server, users who connect to your site will not be able to see the code and will not be able to interfere, they will only be able to see the result. If you wish, you can even make your HTTP server see 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 is 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 the section. If you are only interested in site programming, you can continue with a simple tutorial section.