PHP Object Oriented tutorials
This is a class for generating HTML tables. It's kind of rough, but I thought somebody might want to do something with it.
Related Tutorials
An Expandable Form Validation Class: Part 1
Learn how to create an expandable Form Validation Class, that once complete, you will able to use in any of your PHP scripts. The beauty of this Class is that it is expandable with ease. This means that once the base code of the Class is complete, you can easily configure it to validate different types of form data with virtually no changes. The extra configurations will only be limited to your programming knowledge.
Developing a URL Handling Helper Class in PHP 5
In this third installment of a series on building helpers in PHP 5, I will provide you with the basic pointers for building a URL-handling helper class. The code examples, though simple, should serve to demonstrate how to create a helper that generates dynamic URLs.
PHP and UML Class Diagrams
UML (Unified Modeling Language) is a mechanism for representing software in the form of diagrams. Essentially it allows to design our applications by drawing, and if the right tools existed, even generate code from the diagrams. In this article we'll look at how PHP code is represented in UML terms, via use of the the UML class diagram.
Clean way to call to multiple xmlrpc remote servers
I've got a class library in PHP. This class library is distributed in a several servers and I want to call them synchronously. The class library has a XMLRPC interface with Zend Framework XMLRPC server.
PHP Classes - OOP
Most people are afraid of classes and refuse to see the use of them. I was, until I took a JAVA class, which requires the use of classes, and saw the actual beauty of them. Classes are really useful, they reduce the clutter of your code, and make updating a site very easy. Unfortunately, classes aren't as useful in PHP as in other languages, but I still like them. I'm going to use my site as an example, where I have the user_commands class, which handles all the users on the site (ie login, logout, session_ids, etc). It makes my code very neat and organized, and it really pays off when you need to make a change.
An Expandable Form Validation Class: Part 2
In Part 1 of this tutorial, we covered the basics of our Form Validation Class. We explained how the core of the Class depends on regular expressions and gave an insight regarding the keyword concept. We also explained how each keyword will have a corresponding Class Method so that we can easily extend the Class in the future to suit our needs. In Part 2, we will get our hands dirty in creating the remaining useful Class Methods that will instruct the Class which form fields to validate and how to validate them.
Intro To Object Oriented: Creating Your First Class
Introduction to object oriented programming (oop), create your very first php class.
Advanced Pagination Class in PHP
Now I am going to go through how to make an advanced pagination class in PHP.
Building a Shopping Cart Class in PHP
An introduction to building a class in PHP using a shopping cart as an example.
Advance Pagination Class
This class will display the results of any MySQL table including all the fields and rows. It will work out how many fields there are and display the results accordingly
Enhancing a URL Handling Helper Class
Are you a PHP developer wishing to find an approachable guide that walks you through building different kinds of helper classes in PHP 5? Then look no further, because this group of articles may be the material that you really need.
Sending MIME email in PHP
Tired of sending those drab textual notifications and newsletters to your friend and clients? Ever wanted to send attachments and/or HTML embedded email.The answer is MIME. The ensuing few pages explain the basics of MIME, creating MIME-compliant messages and then ends with a working class implementation of sending MIME complaint email in PHP. Note that references to calling script, caller etc. denote the script that uses the class we are about to develop and client/MUA etc. denote a mail reading client or mail user agent.
Saving Movie Clip Positions with PHP and MySQL
Good understanding of Flash Actionscript is required to complete this tutorial. What this tutorial basically does is to show you how to set up a table in a mySQL database, then using PHP (or asp with a few minor changes) manipulate that table and interact with Flash.
Generating Advanced Web Page Statistics using PHP
This tutorial is intended for the PHP programmer interested in gathering and analyzing Website statistics in a presentable format using mySQL and PHP.You will need a moderate understanding of PHP and a limited knowledge of mySQL, including how to create a mySQL table using the mySQL client.
How to use the LoadVars Class
The LoadVars class allows developers to have a better control of the external loaded data. There are many reason to use the LoadVars class intead of the old deprecated loadvariables and loadvariablesNum.
Object Oriented Programming: Image Class
Create an image class, in this class there are 4 function: One to Upload; One to Resize; One to get a file extension and One to resize on the fly.
How to create a gallery class
In this tutorial, we will create a gallery class, and also a template class that will work together with the gallery class.
ISO to UTF-8 Tutorial
Searching the web for a problem I face on a greek site about encoding, I found a very useful PHP class which changes the charset of a variable.
jQuery Contact form for your website
In this tutorial we show how to create a modern contact form that is linked by a simple text link and opens in a fancy Lightbox where all form handling, including reCAPTCHA validations, are processed by PHP and the jQuery Ajax function. After the form submission was successful we are using the PHP Class script PHPMailer to send the message via SMTP.
couchDB
Connecting PHP and CouchDB. A simple class to perform most common database operations.
While Loops
PHP loops let you run a block of PHP code over and over again. They're great for repetitive tasks such as reading data records from a database, or displaying rows of a table in a Web page.
An Expandable Form Validation Class: Part 3
In this final Part we will be coding some example validation rules and explaining how to use them. We will then go on and show how the final complete Class can be applied in a real working environment, so that you can use it in all your future scripts. At the end of this Part, you should have gained a complete understanding of how the Class operates, and proceed to expand on it with ease.
Classes and objects in PHP
There are many ways to create programming code. One of the easiest but most powerful is to start using object oriented way to think and work. I will give you the basic how you create a class, and why.
PHP Form Class
Generates select boxes, text boxes, check boxes and radio buttons. Via a handful of functions.
Displaying Fields and Data of a MySql Table in PHP
This example shows how to display the data values from the columns of a search result from a MySql query in an HTML table.
Copying data from one table to another in sql
In this short tutorial, I am going to show you how to transfer data from any column in a table to another in sql using php.
FTP Administration with full logging via PHP
PHP Class for FTP Administration with full activity logging.
Creating Calendar in PHP
In this tutorial I will show you how to create a calendar script in PHP. We will create a simple but good looking - easy customizable via CSS - calendar table.
A HOWTO on Optimizing PHP
PHP is a very fast programming language, but there is more to optimizing PHP than just speed of code execution. In this chapter, we explain why optimizing PHP involves many factors which are not code related, and why tuning PHP requires an understanding of how PHP performs in relation to all the other subsystems on your server, and then identifying bottlenecks caused by these subsystems and fixing them. We also cover how to tune and optimize your PHP scripts so they run even faster.
Simple jQuery and PHP CRUD interface
In this tutorial we will learn how to crteate a jQuery and PHP powered simple CRUD for any MySQL table.
What is PHP and Why Should I Care?
One of the first things most people want to know about PHP is what the initials stand for. Then they wish they had never asked. Officially, PHP stands for PHP: Hypertext Preprocessor.
What is PHP?
What is PHP, and what can you do with it? This gentle PHP introduction explains the basics of PHP and looks at how you can use it to build feature-rich Web pages and applications.
PHP Basics
In this tutorial, i will teach you how to make a basic php program.. Mainly how to print output from a php script... I hope you will enjoy using PHP as much as i have, and that you will NEVER use ASP again (if you ever have).
Alternating row colors with PHP and mySQL
A quick tutorial explaining how to alternate table row colors using PHP and MySQL.
Functions, Classes and Objects
In this tutorial i will guide you through the evolution of some php code as it passes from being a function through a static class and finally end up as an object. there is plenty more i could share with you on the theory behind objects, but all we are looking at here is giving you the understanding you need to be able to go out and write your own classes.
PHP Introduction
PHP stands for PHP: Hypertext Preprocessor. PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.
Welcome to PHP
This is a comprehensive article / tutorial on programming in PHP. It covers a variety of key topics including PHP Structure, Scalar Variables and Data, Data collection: Arrays, Operations and Comparisons, PHP Comparison Operators, PHP Logical Operators, Control Statements, The Function of Functions, and Object Orientation.
Creating a PHP form
PHP is a great processor of forms, hence knowing how to write a simple form for php processing is the precursor to make the PHP work.
Creating a bank_account Class
To demonstrate the use of a class, lets create one to model a bank account.A bank account has certain information associated with it, such as itsaccount number, the PIN number needed to access it, and its balance.
Creating a bank_account Class
To demonstrate the use of a class, lets create one to model a bank account.A bank account has certain information associated with it, such as itsaccount number, the PIN number needed to access it, and its balance.
 
Categories