PHP Code Samples

Recent Tutorial

Facebook Open Authentication in PHP

October 28, 2013
Open authentication is for providing access to the server resources after authorizing users via third party services. It will take place between open authentication providers and websites implementing open authentication. In this tutorial, we are going to see about implementing Facebook open authentication with our website using PHP. We can achieve this login mechanism using […]
This tutorial was added to PHP.


October 18, 2013
cURL – Client URL library is used to communicate with different type of servers with protocols FTP, HTTP, telnet, gopher and more. In PHP, we have to install libcurl library for using cURL function. If we used any one of AMP bundle like XAMPP, to create PHP environment, then the cURL library will come up […]
This tutorial was added to PHP.

PHP Change Password Script

September 15, 2013
Change password feature in a web application is to let the user to change their old password at some periodic interval. It makes user to protect the sensitive pages from hackers. Some web application fixes some expiration period for user’s password. It forces user to change password once the expiration period is elapsed. For example, […]
This tutorial was added to PHP.

PHP Login Script with Session

July 22, 2013
PHP login script is used to provide user authentication for our PHP website. This script will be executed on submitting user login details such as username/email and password. We have seen two ways of sending login details from UI to PHP login script. These are┬álogin form submit, and PHP AJAX post. We haven’t seen about […]
This tutorial was added to PHP.

PHP Mail

June 4, 2013
PHP provides mail() function for sending simple mail using PHP scripts. For that, mail() function requires three arguments compulsorily and also two optional arguments, so totally five possible arguments as shown below. Recipient Email Address (Mandatory). Email Subject (Mandatory) Email Context or Message Body (Mandatory) Additional Header Information (Optional) Additional Parameters (Optional) First three arguments […]
This tutorial was added to PHP.

PHP AJAX Programming

May 8, 2013
AJAX is a new programming style by which we can receive quicker response to the request sent for server side files or resources. Requests are sending through Javascript object to a server file. After execution, we can get updates without page refresh. AJAX can be expanded as Asynchronous Javascript and XML using which we can […]
This tutorial was added to PHP.

PHP User Authentication with MySQL

May 7, 2013
In this article, we are going to deal with user authentication mechanism using PHP and MySQL. Using this mechanism, we can protect our website from anonymous access. For that, we need to create a login panel to let users to send their login information. And then, these information will be compared with the registered user […]
This tutorial was added to PHP.

↑ Back to Top