PHP GuruPHP, MySQL, JavaScript, AJAX, MVC, Codeigniter
  • Technology
    • PHP
    • PHP Frameworks
    • MySql
    • Javascript
    • AJAX
    • React Js
    • Node JS
    • ChatGPT
  • JSON Viewer
  • XML Viewer

PHP (Hypertext Preprocessor)

Date August 5, 2012 Author By PravinS Category PHP

What is PHP?

PHP is acronym for Hypertext Preprocessor which was initially known as Personal Home Page. PHP is open source software and server side general purpose scripting language which was designed for web development to create dynamic web pages. PHP scripts are executed on server. It is free to download and use. PHP is easy to learn for any newcomer.

PHP can be easily embedded with HTML (Hypertext Markup Language) source code. PHP can be used to create image, PDF file, Flash files using libraries, text files, XML, CSV and many more.

PHP is platform independent and can be easily installed or configured on any operating system like Linux, MAC, Microsoft Windows, Solaris. PHP supports most of the web servers like Apache, Microsoft Internet Information Server and more.

PHP supports most of the databases like MySql, Oracle, SQLite, PostgreSQL etc. MySql is majorly used database for development. PHP also support command line interface where we can develop shell applications.

PHP can communicate with number of protocols like HTTP, FTP, SNMP, LDAP, SOAP, POP3 and more. PHP also allows extensions like DOM API, COM etc.

PHP has configuration file named as php.ini. Configuration file is read only once when web server is started.

History of PHP

PHP was created by Rasmus Lerdorf in 1995. Initially Rasmus wrote a simple Perl script to track his resume online, so PHP syntax, variable declaration is much same as of Perl. He named this simple Perl script as Personal Home Page

PHP Syntax

When PHP executes a file, it checks for PHP opening and closing tag and when it gets the tag, it starts interpreting PHP code and generates the output. As we use PHP opening and closing tag in file it makes easy to embed it with HTML, javascript etc. There are different ways to write PHP opening and closing tags, but default way is like <?php ?>. We can also use <script language="php"> </script>, short tags like <?= ?> . We can use ASP tags too. We can set tags configuration in php.ini file. Every PHP instruction should be terminated by semicolon(;). To comment any PHP instruction, we can used three different ways. To comment single line PHP instruction we can use # or // characters. To comment block of PHP code we can use /* --- */.

PHP Language Reference

  • PHP support data types like booleans, integers, float, strings, array, objects etc.
  • PHP variable is represented by dollar($) sign and variable name.
  • PHP supports control structures like if, else, else if, while, for, foreach, switch etc. to write PHP code block.
  • From version PHP 5, it started supporting Object Oriented Programming (OOPS concepts). PHP supports abstract classes, visibility, interface objects, object cloning, inheritance, class auto loading, overloading and more OOPS concepts.
  • PHP supports web concepts like session, cookies, persistent database connections, file uploading etc.
PHP Help

To learn more about PHP you can visit php.net website.

Tags: Open Source, PHP, Server Side language

3 thoughts on “PHP (Hypertext Preprocessor)”

  • nike air max classique says:
    October 19, 2012 at 5:19 pm

    I do believe all the concepts you have introduced for your post. They’re very convincing and can definitely work. Nonetheless, the posts are too short for beginners. Could you please prolong them a little from next time? Thanks for the post.

    Reply
  • Alexis Mcwilliams says:
    November 9, 2012 at 2:49 am

    I just want to mention I am all new to weblog and truly enjoyed your web blog. Almost certainly I’m likely to bookmark your blog post . You definitely come with exceptional article content. Bless you for sharing your website page.

    Reply
  • ray ban wayfarer says:
    June 26, 2013 at 7:28 pm

    Thank you a lot for sharing this with all people.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Comparison between CodeIgniter and Laravel
  • SOAP Client In CodeIgniter using NuSOAP PHP Toolkit
  • Pagination using PHP and MySQL – 1
  • Pagination using PHP and MySQL – 2
  • Upload Files using PHP CURL
  • Search Value in Multidimensional Array Using PHP
  • SOAP Server In CodeIgniter using NuSOAP PHP Toolkit
  • Simple JavaScript/CSS Lightbox
  • Import CSV data to MySQL Using PHP
  • Export MySQL data to CSV file Using PHP

Pages

  • ChatGPT
  • Node JS
  • PHP
  • React Js

Tag Cloud

A-Z alphabets in php AJAX alphabets using php array search in php Asynchronous JavaScript and XML CI NUSOAP library Client Side codeigniter codeigniter nusoap library coparison chart Database file upload using curl html to pdf import csv to mysql Javascript javascript css lightbox laravel lightbox MySQL nusoap client in codeigniter nusoap in codeigniter nusoap integration with codeigniter Open Source pagination in php and mysql pagination in php mysql pasination using php pdf pdf generation in codeigniter PHP php and mysql pagination php curl file upload php file upload using curl php mysql pagination php pagination php pagination function RDBMS Scripting Language search in multidimensional array Server Side language soap client in codeigniter soap in codeigniter soap server in codeigniter soap server using nusoap in codeigniter SQL TCPDF with CodeIgniter

Categories

  • AJAX
  • Javascript
  • MySql
  • PHP
    • PHP Frameworks

Recent Posts

  • Comparison between CodeIgniter and Laravel
  • SOAP Client In CodeIgniter using NuSOAP PHP Toolkit
  • Pagination using PHP and MySQL – 1
  • Pagination using PHP and MySQL – 2
  • Upload Files using PHP CURL
  • Search Value in Multidimensional Array Using PHP
  • SOAP Server In CodeIgniter using NuSOAP PHP Toolkit
  • Simple JavaScript/CSS Lightbox
  • Import CSV data to MySQL Using PHP
  • Export MySQL data to CSV file Using PHP

Tag Cloud

A-Z alphabets in php AJAX alphabets using php array search in php Asynchronous JavaScript and XML CI NUSOAP library Client Side codeigniter codeigniter nusoap library coparison chart Database file upload using curl html to pdf import csv to mysql Javascript javascript css lightbox laravel lightbox MySQL nusoap client in codeigniter nusoap in codeigniter nusoap integration with codeigniter Open Source pagination in php and mysql pagination in php mysql pasination using php pdf pdf generation in codeigniter PHP php and mysql pagination php curl file upload php file upload using curl php mysql pagination php pagination php pagination function RDBMS Scripting Language search in multidimensional array Server Side language soap client in codeigniter soap in codeigniter soap server in codeigniter soap server using nusoap in codeigniter SQL TCPDF with CodeIgniter

Advertisements

Categories

  • AJAX
  • Javascript
  • MySql
  • PHP
    • PHP Frameworks
  • Theme created by PWT. Powered by WordPress.org

Copyright © 2014 PHP Guru