Skip to main content

PHP AND ITS BENEFITS FOR DEVELOPERS

What is PHP and what can it do for our website ?

Generally PHP is used to add functionality to our website that HTML alone can't do.However PHP is much more than that!

What is PHP?
PHP is server-side scripting language.This may seems confusing but it is very clear and straight-forward.

What is Server-side scripting language?
This means that everything PHP does occurs in server side.As an example, if a user is updating a profile on a networking site, the server-side scripts will gather the information the user enters, the application will process it on the server, then interact with the database to update that information there.And, because PHP is executed on the server, the client cannot view the PHP code.

What can PHP do?
PHP does anything a PHP programmer wants it to, but it's  main goal is to allow web developers to write dynamically generated pages quickly. 

Common uses of PHP include:
Perform calculations and mathematical equations
Access a wide range of databases
Create a web interface for adding, deleting, and modifying elements within your database(CRUD operations)
Generate HTML content on-the-fly
Set and access cookie and session variables
Authenticate a user to restrict access to sections of your Web site
Encrypt data
Create images on the fly such as CAPCHA  verifications
Generate PDF or Excel documents on the fly
Auto-generate files, and save them in the file system.

    There are many other advanced features and benefits PHP can offer.  Such powerful features are used everyday in popular web applications such as WordPress and Facebook.  So, if you’re new to web development, hopefully this helps you understand what PHP is and the type of things this dynamic language can bring to your website.

      If you enjoyed this post, I’d be very grateful if you’d help it spread by emailing it to a friend, or sharing it on Twitter or Facebook.Next Week i will come with a new php solution. Thank you! Have a nice day ..😃😃

Comments

Popular posts from this blog

Convert HTML to PDF using mPDF library

PDF is format of file to share .Here is code for converting html to PDF using mpdf library (PHP library). //include library path include('mpdf/mpdf.php'); $mpdf=new mPDF('c','A4','','' , 0 , 0 , 0 , 0 , 0 , 0); $mpdf->SetDisplayMode('fullpage'); $mpdf->list_indent_first_level = 0; $mpdf->WriteHTML('<html><head></head><body><h2>Welecome to HTML to PDF </h2></body></html>'); //save the file put which location you need folder/filename $mpdf->Output('test.pdf', 'F'); You can download the library from GitHub. Extract it and paste into your (project folder).

MYSQL CONNECTION USING PDO WITH PHP

Hello guys, In the previous tutorial we have seen how to connect to MySQL database with PHP using MySQLi. Today we will learn how to connect with PDO. As a PHP programmer we have learned how to access database by using either MySQL and MySQLi. As of PHP 5.1, there's a better way. PHP Data Objects(PDO) provide methods for prepared statements and working with objects that will make you far more productive! PDO Introduction :        PDO provides a data-access abstraction layer, which means that, regardless of which database you're using, you use the same functions to issue queries and fetch data. PDO does not provide a database abstraction; it doesn't rewrite SQL or emulate missing features. Database Support:       The extension can support any database that a PDO driver has been written for. The following drivers currently implement the PDO interface: PDO_CUBRID Cubrid PDO_DBLIB FreeTDS / Microsoft SQL Server / Sybase PDO_FIREBIRD Firebird PDO_I...