0

How does the server side (PHP), single out of the web, and only be visual on your computer?

The PHP is made inside the HTML, so how is just visual on your computer only?

9th Aug 2019, 10:23 PM
Ginfio
Ginfio - avatar
1 Antwort
0
What is PHP? PHP (acronym for PHP: Hypertext Preprocessor) is a very popular open source language especially suitable for web development and can be embedded in HTML. A short and concise answer, but what does it really mean? An example will clarify things: Example # 1 An introductory example <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Example</title> </head> <body> <?php echo "Hola, ¡soy un script PHP!"; ?> </body> </html> Instead of using many commands to display HTML (as in C or Perl), PHP pages contain HTML with code included in it that does "something" (in this case, show "Hi, I'm a PHP script!). The code PHP is between special start and end tags <? Php and?> That will allow us to enter and exit the "PHP mode". What distinguishes PHP from something client-side like Javascript, is that the code is executed on the server, generating HTML and sending it to the client. The client will receive the results of executing the script, without any possibility of determining which code has produced the received result. The web server can even be configured to process all HTML files with PHP and then there is no way that users can know what you have under your sleeve. The best thing about using PHP is that it is extremely simple for the beginner, but at the same time, it offers many advanced features for professional programmers. Do not be afraid to read the long list of PHP features, in a short time you can start writing your first scripts. Although PHP development is focused on server-side scripting, it can be used for many other things. Read on and find out more about PHP in the section What can be done with PHP? or go directly to the introduction tutorial if you are only interested in
23rd Oct 2019, 4:41 PM
Adrián Manuel López Cosenza
Adrián Manuel López Cosenza - avatar