PHP Tutorials

Phppot the tutorials site focuses on web technologies like PHP, jQuery, CSS and Wordpress. Our tutorials are simple and easy to understand with suitable examples and downloads. Welcome!

Recent Tutorials

PHP CSV File Read

April 4, 2014
This tutorial is to help you to read a CSV file or data. Character Separated Values(CSV) or Comma Separated Values is a file type containing plain text content with comma or a character as separators. It is a convenient form to store simple data. PHP has two in-built functions to read CSV file. fgetcsv() – […]

PHP Watermark

January 30, 2014
Adding watermark in PHP is very simple. It can be done using PHP image libraries like GD. Using GD functions, we can use text or image as watermark on to a target layer/document. PHP / GD Text Watermarking Text watermarking functions are, imagestring() – Adding text string into images imagettftext() – Adding text into images […]

PHP AJAX Image Upload

January 3, 2014
In this tutorial let us learn about how to upload an image file using PHP and AJAX. We are using jQuery AJAX to send image file to the server side PHP script. Steps for PHP AJAX Image Upload, Add jQuery library Create HTML for image upload form Send file data to PHP via AJAX Write […]

MySQL BLOB using PHP

December 30, 2013
BLOB is a kind of MySQL datatype referred as Binary Large Objects. As its name it is used to store huge volume of data as binary strings as similar as MYSQL BINARY and VARBINARY types. Classification of MySQL BLOB MySQL BLOB Types Maximum Storage Length (in bytes) TINYBLOB ((2^8)-1) BLOB ((2^16)-1) MEDIUMBLOB ((2^24)-1) LONGBLOB ((2^32)-1) […]

Load Dynamic Data using jQuery

December 12, 2013
There are many ways to load dynamic data using jQuery. For example, Sending jQuery AJAX call to PHP for dynamic data to be loaded. Creating HTML with dynamic data and load it into target DIV. In this tutorial, we are going use the second method to load dynamic data into a listbox. Let us see […]

Send Email in PHP using Gmail SMTP

December 5, 2013
In this tutorial, let us see how to send email in PHP using PHPMailer library via Gmail SMTP. Sending email in PHP can be done with various mail transfer libraries available. For example,  PHPMailer, PEAR::Mail interface. These libraries provide advanced features like SMTP authentication and more. Sending email with PHP’s core function mail() is simpler. […]

How to Create a Minimal WordPress Theme

December 4, 2013
Creating a minimal WordPress custom theme is simple. In this tutorial let us walkthrough the steps to create a WordPress theme. Create new theme folder. Create WordPress theme-specific files like header, footer and stylesheets. Add styles to the new theme.  Before starting with these steps, it is better to have a local setup of WordPress. […]

MySQL Database Files

November 28, 2013
In MySQL database installation, a directory has set of files which contains database metadata and data. That is, the database schema and containing values. These files are, .frm – contains schema .myd – contains data .myi – contain indices All the above list of files may not be available in MySQL database directory. It is […]

jQuery ThickBox

November 27, 2013
jQuery ThickBox is a kind of popup dialog overlay on top of the browser window. This is a UI widget written in JavaScript by Cody Lindley using jQuery library. ThickBox can be displayed based on events like onClick, onMouseDown, etc. jQuery ThickBox Features While showing ThickBox, it disables background screen and prevents user to interact […]

PHP array_intersect

November 25, 2013
PHP array_intersect() function is used to find intersection between arrays. This function can accept multiple arguments to compare. After comparison, this function returns array of intersecting elements that are commonly available in all the given input arrays. array_intersect() is the reverse of PHP array_diff() which returns the elements that are not in the arguments. Syntax: […]

PHP Session Encode Decode

November 22, 2013
In PHP, session encode and decode operations are automatically performed while storing session data into memory and reading stored session, respectively. While encoding, $_SESSION array is converted into serialized string format and decoding reverts serialized string back to its original form. This serialization will not return same format like PHP serialize(). The encoded session data […]

jQuery Menu Dropdown

November 20, 2013
In this jQuery tutorial we are going to implement menu dropdown. When we have menu list with set of submenu, then showing all the menu items flatly in our webpage will not be user friendly. In such cases showing dropdown menu may help. As always jQuery makes our life better when it comes to programming […]

PHP XML Reader

November 19, 2013
XML Reader extension is used to create XML parser to walk through a XML document. This is the last one among the list of PHP core XML parsing techniques we have seen. This parser is referred as stream based XML parser and also called as pull parser. Before PHP version 5.1.0, XML Reader extension was […]

PHP XML Parser

November 18, 2013
PHP XML parser is used to perform event-based parsing on XMLs. This extension uses Expat XML parser library to implement event based parser. As like other core XML parsers of PHP, it also uses libxml extension. XML parser supports ISO-8859-1, US-ASCII and UTF-8 character encoding. Did you find something annoying with this? Yes, name of […]

PHP DOM Parser

November 17, 2013
DOM is a tree based parser, used as an API to manipulate XML in PHP. Before PHP 5, we should add the domxml extension to use DOM parsers. From PHP 5, libxml extension is used. Since libxml is available as part of PHP core, we need not install or enable anything explicitly to use DOM […]