Thursday, May 12, 2016

Learn about php



PHP is a authoritative scripting verbal that fits elegantly into HTML and puts the tools for creating active websites in the hands of the people — even people like me who were too lazy to learn Perl scripting and other difficult backed hoodoo. This tutorial is for the person who understands HTML but doesn’t know much about PHP. One of PHP’s greatest attributes is that it’s a freely distributed open-source language, so there are all kinds of excellent orientation material about it out there, which means that once you understand the basics, it’s easy to find the materials that you need to push your skills. PHP is a program that gets installed on top of your web server software. It works with versions of Apache Microsoft IIS and other server software packages. You use PHP by inserting PHP code inside the HTML that makes up your website. When a client (anybody on the web) visits a web page that contains this code, your server executes it. That’s why you need to mount your own server in order to test PHP locally — the server is the brain here, not your browser. Users don’t need any special plug-ins or anything to see your PHP in action — it gets to the end user as regular old-fashioned HTML. PHP is a scripting language, like HTML. That means that code does not need to be compiled before it gets used — it gets administered on the fly as required. . PHP is an open-source language, and PHP.net is its control center, with extensive reference material about the language and tips sent in by users across the globe. PHP.net has exceptional, deep information about the language, but it can be a little cryptic for the newcomer. We’ll look more closely at how to use PHP.net at the end of this tutorial. What kinds of things can PHP do? Well … it can: take info from web-based forms and use it in a million ways (store it in a folder, create conditional pages liable on what the forms said, set cookies for later, send e-mail, write your mom on her birthday); authenticate and track users; run threaded deliberations on your site; serve different pages to people using different browsers or devices; publish an entire website using just a single layout template (server-side includes-style); serve XML pages. But before we can get to the specific uses of PHP, we need to start with a quick preview of the building blocks of PHP, beginning with a sample script. This example script is titled “chicken man.php.” When called by a web browser, it would simply read, “I am the CHICKEN MAN!”

No comments:

Post a Comment