PHP Basic

PHP Introduction

PHP stands for “PHP : Hypertext Preprocessor” is widely used general purpose open source scripting language.

PHP was founded by Rasmus Lerdorf in 1994 but PHP entered into market in 1995.

PHP is a programming language that allows web developers to create dynamic web content that interacts with database.

PHP is a server side scripting language. It is formulated for better web development.

The things which differentiate PHP from client side scripting language like HTML, CSS is , PHP codes are executed on server where HTML code is run directly over browser.

The output of PHP file will also displayed over browser but first it executed on the server after then result will displayed on browser.

PHP is widely used for web development and can be embedded into HTML. HTML code also be written into PHP file.

PHP3 is the first version. Due to some insufficient features higher version of PHP was invented. So Latest release is PHP 7.

It contain text, css, HTML, javascript and php code.

It execute on the server and result is returned on the browser.

PHP is easy to run and more efficient to set up on your server.

PHP is the leading platform to learn web development.

WHY PHP ?

– It supports wide range of database like MYSQL, Oracle, Informix, MicrosoftSQL server etc.

– It runs on different platforms.

– Easy to download from official PHP resource : http://www.php.net

USE OF PHP

– To generate dynamic page content.

– To collect form data and save into MYSQL Database.

– To perform add, delete, update, read, write data operations into database.

– To create sessions, send and receive cookies, send and receive emails etc.

– It is used for encryption of data. There is many hash functions to encrypt the user data.

– It provides security and flexibility.

– It supports several protocol like POP3, HTTP, IMAP and many more.

– It also supports many web servers like apache, IIIS and many more.

– By using PHP, you can restrict some user to visit your data or some pages on your website.

FEATURES

PHP is well liked scripting language for web developers.

features

Here are some important features listed below :

Performance

– PHP script execute faster than other scripts such as ASP and JSP.

– Reduce server workload and reduce loading time by using its own memory.

– It gives superior result and faster performing speed.

Familiarity

– PHP syntax is easily understandable.

– Programmers are more comfortable with PHP script rather than other scripts.

Simplicity

– PHP script can easily integrate with other scripts. There is no need to include any specific library.

– There is no need to implement main method into script and as well as also you can work without creating class in your script.

Security

– PHP is more secure language to develop website compare to other languages.

– Many confident encryptions are support php language to secure website from harmful malwares.

– There are many layers of safety to stop malicious threads and attacks.

Database support

– Many major database such as MySql, Sqlite etc are supported by php language.

– PHP script can read data, write data, update data and delete data all the operations are performed on the database.

Web server support

– PHP deals with almost all local servers.

Error reporting

– There are some pre-defined error constants to show notice for error or warning at execution time of PHP script.

such as, E_ERROR, E_WARNING, E_PARSE, Fatal error etc.

Platform independent

– PHP is accessible on almost all platform such as WINDOWS, Mac OS, LINUX & UNIX operating systems.

SOME ADDITIONAL FEATURES OF PHP7 :

Here are some additional features of PHP7 which overcomes the inefficient functionality of lower version of PHP.

Improved performance

– Performance improvement is the main benefit of PHP7.

– It execute your code more faster and uses less memory for execution.

Error handling

– In older version of PHP, if fatal error occurs during the execution it will stop the execution but into the PHP7 it will allow you to solve this kind of error rather than the stopping the execution.

64-bit windows system support

– Lower release of PHP doesn’t support the 64-bit large file support. But PHP7 will allow you to run the script over 64-bit windows system and provide large file support.

Add anonymous class

– Anonymous means having no name.

– PHP7 allows you to declare anonymous class into script. If the class is used only once during the execution then this anonymous class is useful.