Sunday, December 31, 2017

What is PHP Programming Language

                     PHP LANGUAGE

PHP (Hypertext Preprocessor) is a scripting language, mostly used on the server side, that can be employed to generate Hypertext Markup Language (HTML) information dynamically. PHP is connected to a web server, generally Apache or Internet Information Server (IIS), and once it has finished generating proper HTML, it sends its creation back to the web server for delivery to the requesting client. 
             I say “mostly used” on the serverside because you can use PHP in many other areas, including command line, desktop PC, and client server environments, just to name a few. However, it is most commonly used in the web server environment. 
            PHP developers can also integrate PHP with one of many different database tools like MySQL, SQLite, PostgreSQL, DB2, MS SQL, ORACLE, and so on, to make their created content as dynamic as possible. In reality, what is produced is still a static HTML file, but it is produced on the fly and therefore seems to be dynamic.
                        PHP is an open-source, cross-platform, server-side scripting language that can be embedded into HTML pages. PHP programmers write their PHP code directly in the HTML page. Then the web server executes the PHP code within the HTML page, before returning the page to the web browser. 
          This is what we mean by an embedded server-side scripting language:- The PHP code itself is never sent to the web browser; only the output generated by running that code is sent. Other common server-side scripting languages include Active Server Pages (ASP), Java Server Pages (JSP), and ColdFusion.
                     Earlier we said that when a web browser requests a PHP page from the web server, the web server knows that it first needs to execute the PHP code in the page before sending the results to the web browser. 

Example :- 

  There are two things that you need to dotohave this happen:-Name your pages correctly. The standard for naming PHP pages is to use a php extension to the page.
                When a web server that has been configured encounters a page with a php extension, it will search the page for PHP code and execute it. Pages that have an htmlextension will be handled as normal HTML, and any PHP code in the page will not be executed. 

History of PHP -

               Personal Home Page (PHP), initially known as PHP Tools, was launched in June 1995 by Rasmus Lerdorf. It was originally
launched as open source software and remains so to this day. Database integration was implemented in version 2.0 in 1996, and the product has grown by leaps and bounds ever Since.
               Its worldwide use is higher than any other web development language. As of this
writing, the latest version of PHP is 5.3, which was released on June 30, 2009.

Basic step of PHP:-

     By now you might be anxious to try PHP out for yourself, so we’ll go through a quick installation discussion here and have you saying, “Hello, world” in no time. The basic method of PHP development is to build PHP code on top of web server software like Apache or IIS. 
       There is a “stack” of software that is generally used for a fully functional development environment: either LAMP or WAMP. LAMP stands for Linux/Apache/MySQL/PHP, but there are variations to this, as one would expect. 
          You could be using PostgreSQL instead ofMySQL for the database and therefore the acronym would be LAPP, but you get the idea. The other acronym—WAMP—stands for Windows/Apache/MySQL/PHP.


Basic step of php

Note:- Typically, the OS has no real bearing on the functionality of the written code. PHP written in the Windows environment will certainly operate just as well on a Linux box and vice versa. The only thing to be cautious of is if you are doing OS-level commands like CHMOD (for changing file permissions) or CHOWN (for changing file ownerships) in Linux and want to do the samein a different OS. Just be sure to test your code well in this, and all, instances.

Installing in PHP web:-

As was mentioned above, PHP is available for many operating systems and platforms. Therefore, you are encouraged please go to this URL site  to find the environment that most closely fits the one you will be using and follow the appropriate instructions. From time to time, you may also want to change the way PHP is configured. To do that you will have to change the PHP configuration file and restart your Apache server. Each time you make a change to PHP’s environment, you will have to restart the Apache server in order for those changes to take effect.READ MORE


Please comment and follow this site blog inbox