PHP Tutorials

PHP (Hypertext Preprocessor) is a server-side HTML embedded scripting language that allows web developers to create dynamic content that interacts with databases. PHP is easy to learn and platform-neutral, so the same code runs on Windows, Mac OS X, and Linux; and all the software you need to develop with PHP is open source and therefore free.
Home » PHP (1189 Tutorials)
Write a Script to Run Shell Commands from Browser
Write a Script to Run Shell Commands from Browser tutorial
It happens pretty often for me to have to run shell commands in a hosting environment. I do it all the time via a simple php script. I tested it on godaddy and dreamhost and on other hostings environments and it works fine. Before starting the tutorial you should note that if this script is not handled carefully it can have undesired results. A wrong rm command can delete all the files you have on your hosting, so run the commands with care.
couchDB
couchDB tutorial
Connecting PHP and CouchDB. A simple class to perform most common database operations.
Handling errors
Handling errors tutorial
As coders, I'm sure we all know the value of good error handling. So I thought a quick post about how Codeigniter deals with those pesky errors would be a good post. The way I see it, there are 2 types of errors we have to work with. The ones which are displayed out in nice friendly text to your users, and the type which are hidden and shown only to you as the coder to figure out where something has gone wrong.
Catch uncaught exceptions
Catch uncaught exceptions tutorial
This is the third in a series of posts about exception handling in PHP and looks at how to specify a default exception handler. The default handler is called for any exceptions that occur which are not enclosed in a try..catch block.
Making a File Download Counter
Making a File Download Counter tutorial
We are creating a simple, yet robust, file download tracker.
Simple jQuery and PHP CRUD interface
Simple jQuery and PHP CRUD interface tutorial
In this tutorial we will learn how to crteate a jQuery and PHP powered simple CRUD for any MySQL table.
Multiple select lists with jQuery, JSON, Ajax
Multiple select lists with jQuery, JSON, Ajax tutorial
This tutorial will all be about managing loading data into multiple select lists and then save the selections in the list.
Shipping and Tax Calculations
Shipping and Tax Calculations tutorial
In this article by Michael Peacock, you will learn about how to process orders for shipping and tax calculations, once your e-commerce store has received the purchase order. The article includes the following topics: * How to calculate shipping costs based on Product, Weight, Location, and "Shipping rules" * About third-party shipping APIs * How to integrate shipping and tracking notifications on orders * How to integrate tax costs into our system
Exceptions - available information
Exceptions - available information tutorial
This post is part of a series about PHP exceptions and exception handling; the first post gave a basic overview of how they work and this one shows the information that is available from the exception object when an exception is caught.
Escape variables with PEAR DB with bound placeholders
Escape variables with PEAR DB with bound placeholders tutorial
A week ago I looked at how to escape a string for use with a SQL query using the PHP PEAR DB escapeSimple function. This is useful for embedding a variable directly into a SQL query string but it can be a lot easier to use bound placeholders instead and let PEAR DB do all the escaping.
File Upload
File Upload tutorial
In this tutorial we'll be creating a basic File Upload System. This tutorial only requires you (preferably) to have a basic understanding about PHP variables and loops. Although, some pre knowledge about PHP arrays wouldn't hurt either!
Showing The WordPress Comments In Reverse Order (Newest to Oldest)
Showing The WordPress Comments In Reverse Order (Newest to Oldest) tutorial
Want to show the comments in reverse order, newest to oldest? It's really easy, here is how.
Disable Trackbacks And PingBacks In WordPress Comments
Disable Trackbacks And PingBacks In WordPress Comments tutorial
When you have trackbacks and comments mixed up together it looks messy. Good thing wordpress allows us to filter what we want really simple.
WordPress: Change User Roles For Multiple User In Wp-admin
WordPress: Change User Roles For Multiple User In Wp-admin tutorial
In wordpress admin we can add more users to our blog. We can have some options to specify roles for the users depends on the user roles each users can access wordpress admin with their roles. Each role has certain limit to access wordpress amin. Only administrator role have the access for full admin area. Others have the responsibility of admin access based on their role.
How to create Author box in wordpress blog?
How to create Author box in wordpress blog? tutorial
In this video tutorial I am going to show how to add author box in your wordpress blog. Because it is very important for each post, then only visitors can know about author. In author details you can put your Rss feed link and what are all the links you want, you can add in that author box description.
How To take backup of entire wordpress blog and restore that backup again?
How To take backup of entire wordpress blog and restore that backup again? tutorial
This tutorial explains about how to take back up of your home directory folder (public_html). It doesn't cover how to take back up of database. If you don't have database, you wont see any posts or comments in your wordpress blog. Because posts and comments will be in database only.
Did you mean?
Did you mean? tutorial
Now you may have come across while using google and making simple mistakes. It can then come along and correct you. Well we can also do this using a very simple algorithm known as levenshtein string distance.
10 Effective Ways To Secure Your WordPress Blog
10 Effective Ways To Secure Your WordPress Blog tutorial
Every version comes with improvements, but until we get a completely secure WordPress version we have to find ways to improve the security ourselves. Here are 10 great ways to improve the security of your WordPress powered website.
Model View Controller
Model View Controller tutorial
The model view controller pattern is the most used pattern for todays world web applications. It has been used for the first time in Smalltalk and then adopted and popularized by Java. At present there are more than a dozen PHP web frameworks based on MVC pattern .
Object Oriented Programming Basics
Object Oriented Programming Basics tutorial
This tutorial will be explaining the basics of Object Oriented Programming (OOP) classes.
Home » PHP (1189 Tutorials)
 
Subcategories
 
Categories
 
Advertisement