PHP Tutorial

PHP



PHP Basics
How to Create a Global Variable in PHP
Difference between the POST and GET Method in PHP
How to Create a Line Break in PHP
How to Format and Display the Date in PHP
How to Generate a Random Number in PHP
How to Find and Replace Text in PHP
How to Remove Whitespace from a String in PHP
How to Capitalize the First Word of a String in PHP
How to Capitalize Each Word of a String in PHP
PHP print_r() function
PHP foreach loop
How to Check if a Variable is Empty In PHP
How to Measure the Length of a String in PHP
How to Get the Current Page URL of a Web Page Using PHP

Arrays
How to Merge Arrays in PHP
How to Fill an Array in PHP
How to Pad an Array in PHP
How to Slice an Array in PHP
How to Create an Associative Array in PHP
How to Display All of the Elements of an Associate Array in PHP
How to Sort Numbers of an Array in Ascending Order in PHP
How to Sort Numbers of an Array in Descending Order in PHP
How to Sort Strings of an Array in Ascending Order in PHP
How to Sort Strings of an Array in Descending Order in PHP
How to Find the Smallest Number in an Array in PHP
How to Find the Largest Number in an Array in PHP
How to Make Each Element of an Array Unique in PHP
How to Create a Multidimensional Array in PHP
How to Access the Elements of a Multidimensional Array in PHP
How to Loop Through a Multidimensional Array in PHP
How to Sort a Multidimensional Array in PHP

Form Data
Form Attributes
Difference Between the POST and GET Method in PHP

Form Data Retrieval
How to Retrieve Data from a Text Box with PHP
How to Retrieve Data from a Radio Button with PHP
How to Retrieve Data from a Check box with PHP
How to Retrieve Data from an Array of Checkboxes with PHP
How to Retrieve Data from a Drop-down List with PHP
How to Retrieve Data from a List Box with PHP
How to Retrieve Data from a Textarea with PHP

Form Validation
How to Perform Number Validation in PHP
String Length Validation in a Web Form with PHP
How to Check if the Submit Button Is Clicked in PHP
How to Validate an Email Address Using PHP
How to Validate an Email Address Using PHP & AJAX
How to Validate a Credit Card Number Using PHP
How to Validate a Credit Card Number Using PHP & AJAX

How to Do Stuff in PHP
How to Generate a Random Password Using PHP
How to Create a Confirmation Page for an HTML Web Form Using PHP
How to Redirect to Another URL with PHP
How to Create a Search Engine Using PHP
How to Create Your Own Search Engine For Your Website Using PHP
How to Create a Custom Search Engine For Your Website Using PHP
How to Create an Image Search Engine For Your Website Using PHP
How to Create a Video Search Engine For Your Website Using PHP
How to Create an Audio File Search Engine For Your Website Using PHP
How to Upload Images to a Website Using PHP
How to Upload Videos to a Website Using PHP
How to Upload Files to a Website Using PHP
How to Upload Files to Your Server Using Your Own Website
How to Restrict the Size of a File Upload with PHP
How to Create Your Own File Transfer Protocol (FTP) For Your Website Using PHP
How to Create a Register and Login Page Using PHP
How to Use Sessions to Track User Data Using PHP
How to Check if Cookies are Enabled Using PHP
How to List All Files in a Directory using PHP
How to List All the Directories of a Website Using PHP
How to List All Files of the Root Directory and Its Subdirectories of a Website Using PHP
How to Read the Contents of a File Using PHP
How to Write Contents to a File Using PHP
How to Copy a File Using PHP
How to Rename a File Using PHP
How to Delete a File Using PHP
How to Create a New File Using PHP
How to Create a New Directory Using PHP
How to Create a Web Crawler using PHP
How to Retrieve and Get the Contents of a Web Page Using PHP
Connecting to and Using an FTP with PHP
How to Find Out if a Page Is Secure Using PHP
How to Redirect to a Secure Connection Using PHP
How to Create a CSV File Using PHP
How to Access the Parent Directory of a Directory Using PHP
How to Get and Send HTTP Headers Using PHP
How to Prevent Cross Site Scripting with PHP
How to Serialize an Object or Array in PHP
How to Unserialize an Object or Array in PHP
How to Generate a Random Video id Like Youtube in PHP

Object-Oriented PHP
How to Create a Class in PHP
How to Create and Access Class Constants in PHP
How to Instantiate an Object in PHP
How to Delete an Object in PHP
How to Initialize an Object in PHP
How to Invoke a Method On an Object in PHP
How to Access Overridden Methods in PHP
How to Create Getter and Setter Methods in PHP
How to Use the __get and __set Magic Methods in PHP
How to Use the __toString Magic Method in PHP
How to Create a Final Class in PHP
How to Create a Final Method in PHP
How to Create an Abstract Class in PHP
How to Create and Implement an Interface in PHP
How to Clone an Object in PHP
How to Inspect an Object in PHP
How to Create a Class Constructor in PHP
How to Create a Class Destructor in PHP
Constructor Overloading in PHP
How to Create and Access Static Properties and Methods in PHP
How to Count the Number of Objects in a Class in PHP
How to Autoload Classes In PHP

PHP & JSON
How to Read JSON with PHP
How to Write JSON with PHP
How to Parse JSON with PHP
How to Access the Google Maps API in JSON Format with PHP

PHP & XML
How to Create an XML Document with PHP
How to Read XML with PHP
How to Parse an XML Document Using PHP
How to Access the Google Maps API in XML Format with PHP

PHP & MySQL
How to Connect to a MySQL Database Using PHP
How to Connect to a MySQL Database Using PHP Data Objects (PDO)
How to Connect to a PostgreSQL Database Using PHP Data Objects (PDO)
How to Create a MySQL Table Using PHP
How to Select a Table from a MySQL Database
How to Check if a MySQL Table Exists Using PHP
How to Show All Tables of a MySQL Database Using PHP
How to Delete a MySQL Table Using PHP
How to Rename a MySQL Table Using PHP
How to Add a Column to a MySQL Table Using PHP
How to Add a Primary Key to a Column of a MySQL Table Using PHP
How to Make a Column of a MySQL Table Unique Using PHP
How to Rename a Column of a MySQL Table Using PHP
How to Delete a Column of a MySQL Table Using PHP
How to Set the Default Value of a Column of a MySQL Table Using PHP
How to Drop the Default Value of a Column Of a MySQL Table Using PHP
How to Modify the Defintion or Data Type of a Column of a MySQL Table Using PHP
How to Insert Data into a MySQL Table Using PHP
How to Delete a Row of a MySQL Table Using PHP
How to Delete All Rows of a MySQL Table Using PHP
How to Insert Data Into a Table of a MySQL Database From an HTML Form Using PHP
How to Update a Value in a MySQL Table Using PHP
How to Get the Sum of All Rows of a Column of a MySQL Table Using PHP
How to Get the Average of All Rows of a Column of a MySQL Table Using PHP
How to Get the Minimum Value of a Column of a MySQL Table Using PHP
How to Get the Maximum Value of a Column of a MySQL Table Using PHP
How to Copy a Table Definition in MySQL Using PHP
How to Limit the Number of Rows Returned from a MySQL Table Using PHP
How to Perform Arithmetic Across Columns of a MySQL Table Using PHP
How to Concatenate Column Values in MySQL Using PHP
How to Return Random Rows from a MySQL Table Using PHP
How to Find Null Values In a MySQL Table Using PHP
How to Show the Structure of a MySQL Table Using PHP
How to View User Privileges of a MySQL database Using PHP
How to Display a MySQL Table of a Database using PHP
How to Display a MySQL Table Without Duplicate Entries Using PHP
How to Find the Number of Rows in a MySQL Table Using PHP
How to Sort a Field of a MySQL Table in Ascending Order in PHP
How to Select Specific Columns from a MySQL Table Using PHP
How to Display Certain Fields of a Table in MySQL Using PHP
How to Select a Specific Row of a MySQL Table Using PHP
How to Insert Images into a MySQL Database Using PHP
How to Insert Videos into a MySQL Database Using PHP
How to Insert Files into a MySQL Database Using PHP
How to Create a Video Manager Using PHP & MySQL
How to Read a File and Write Its Contents to a Column of a MySQL Table Using PHP
How to Create a Searchable Database Using MySQL and PHP
How to Search a MySQL Table For Any Word or Phrase Using PHP
How to Create a Send Email Form Using MySQL and PHP
How to Create a Newsletter from Scratch using PHP and MySQL
How to Create a Website Comment Box Using PHP, MySQL, and AJAX
How to Load a CSV File Into a MySQL Table Using PHP

PHP Scripts
PHP Script to Convert Any Web Page File Extensions

PHP Games
Number Guessing Game with PHP

Application Programming Interfaces (APIs)
Google Maps
How to Obtain the Zip Code from an Address from the Google Maps API using PHP
Ebay
How to Search the Ebay API by Keywords Using PHP
How to Search the Ebay API by ISBN using PHP
How to Search the Ebay API by UPC using PHP

RSS Feed
How to Read an RSS Feed Using PHP
How to Search an RSS Feed For Any Keyword Using PHP

Comparison
Java and PHP

PHP Configuration Settings
How to Read an Individual PHP Configuration Settings
How to Set Individual PHP Configuration Settings
How to Extend the Run Time of a PHP Script
How to Change the Maximum Upload File Size of a PHP Script
How to Prevent Error Log Files in PHP

PHP Common Errors
PHP Header Location Error- Warning: Cannot Modify Header Information- Headers Already Sent