Skip to main content

Introduction to PHP



PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document.

As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as standalone interpreter on most operating systems and computing platforms.

USAGE:
PHP is a general-purpose scripting language that is especially suited to server-side web development where PHP generally runs on a web server. Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content. It can also be used for command-line scripting and client-side GUI applications. PHP can be deployed on most web servers, many operating systems and platforms, and can be used with many relational database management systems. It is available free of charge, and the PHP Group provides the complete source code for users to build, customize and extend for their own use.[30]

PHP primarily acts as a filter,[31] taking input from a file or stream containing text and/or PHP instructions and outputs another stream of data; most commonly the output will be HTML. Since PHP 4, the PHP parser compiles input to produce bytecode for processing by the Zend Engine, giving improved performance over its interpreter predecessor.[32]

Originally designed to create dynamic web pages, PHP now focuses mainly on server-side scripting,[33] and it is similar to other server-side scripting languages that provide dynamic content from a web server to a client, such as Microsoft's Active Server PagesSun MicrosystemsJavaServer Pages,[34] and mod_perl. PHP has also attracted the development of manyframeworks that provide building blocks and a design structure to promote rapid application development (RAD). Some of these include CakePHPSymfonyCodeIgniter, and Zend Framework, offering features similar to other web application frameworks.

FURTHER...
The LAMP architecture has become popular in the web industry as a way of deploying web applications. PHP is commonly used as the P in this bundle alongside LinuxApache andMySQL, although the P may also refer to Python or Perl or some combination of the three.
As of April 2007, over 20 million Internet domains had web services hosted on servers with PHP installed and mod_php was recorded as the most popular Apache HTTP Servermodule.[35] Significant websites are written in PHP including the user-facing portion of Facebook,[36] Wikipedia (MediaWiki),[37] Yahoo!,[citation needed] MyYearbook,[citation needed] Digg[38]JoomlaeZ PublishWordPress,[39] YouTube in its early stages, [citation needed] Drupal [40] and Moodle.[41]


Comments



Free Educational Website For All

Popular posts from this blog

Buruj mudahkan pengenalan bintang di langit

Terdapat 88 sistem buruj di langit. Buruj sebenarnya adalah titik-titik bintang yang dikumpul dan dibahagikan serta diberikan nama-nama tertentu berdasarkan bentuk supaya mudah diingat. Ini merupakan cara sistem buruj mula terbentuk. Justeru, buruj ini sebenarnya bukanlah satu perkara yang benar. Ia sebenar adalah lambang khayalan ahli-ahli syair, petani dan juga astronomi lebih 6,000 tahun lalu. Tujuan sebenar penciptaan buruj ini adalah bagi membantu kita mengenal pasti jutaan bintang di langit. Semasa langit gelap, anda boleh melihat lebih kurang 1,000 hingga 1,500 bintang. Pasti sukar untuk kita mengenal pasti bintang yang mana satu. Malah sekali imbas, titik cahaya yang berkedipan di langit malam kelihatan sama sahaja. Oleh itu, beribu tahun dahulu, ahli astronomi awal telah membahagikan bintang mengikut kumpulan dan melukis gambar khayalan seperti kala jengking atau beruang, di sekeliling kumpulan bintang tersebut supaya mudah diingat. Bintang di dalam sesuatu buruj itu se...

Can you IMAGINE IF Selena Gomez and Taylor Swift WEAR HIJAB?

Why Do Languages Die?

Urbanization, the state and the rise of nationalism. “The history of the world’s languages is largely a story of loss and decline. At around 8000 BC, linguists estimate that upwards of 20,000 languages may have been in existence. Today the number stands at 6,909 and is declining rapidly. By 2100, it is quite realistic to expect that half of these languages will be gone, their last speakers dead, their words perhaps recorded in a dusty archive somewhere, but more likely undocumented entirely. (…) The problem with globalization in the latter sense is that it is the result, not a cause, of language decline. (…) It is only when the state adopts a trade language as official and, in a fit of linguistic nationalism, foists it upon its citizens, that trade languages become “killer languages.” (…)