Home Submit Sources Feeds
PHP Miscellaneous tutorials
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.
Related Tutorials
PHP Table Class
This is a class for generating HTML tables. It's kind of rough, but I thought somebody might want to do something with it.
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.
Dynamic Image Generation with PHP
PHP lets you do a lot more than simply generating HTML content, it is also a great tool to dynamically generate images on-the-fly. For example, you can create buttons with text from a database,create grapical displays of statistics from log files,enhance business data with graphs and diagrams.This tutorial shows you how to use the GD library to dynamically create images on your site. The GD library is an external module which is accessed by a native PHP module.
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.
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.
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.
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.
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.
FTP Administration with full logging via PHP
PHP Class for FTP Administration with full activity logging.
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.
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.
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.
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).
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 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.
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.
Introduction to PHP
PHP - This tutorial was written to introduce you to PHP, it assumes you know nothing about programming at all, starts with the very basics and slowly guides you through some of the concepts of PHP programming.
Viewsource
A number of websites, including php.net, allow you to view the source code of their PHP pages. This is usually to allow you to see how the page is put together and how the PHP code itself is written. Usually, it is not possible to view the PHP source but with a built in function in PHP, you can.
PHP Comments
Learn how to write PHP comments, and how to comment your PHP code effectively, in this easy-to-follow PHP tutorial.
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
Acquiring PHP MySQL
PHP and MySQL are already packaged in Linux and Mac OS X OSs. However, most PHP developer are actually using Windows when developing PHP applications. This is also true to myself. I have Mandrake Linux 10 but I'll just use it for testing purposes of my finished scripts. One reason is that Windows render an amazing web presence unlike any other OS's browsers. So this page will only cover the WAMP ( Windows, Apache, MySQL, PHP ). You will learn how to install Apache, PHP, and MySQL under Windows platform.
Adding PHP to Apache on Linux
This article provides extensive instructions on installing PHP on Apache/Linux. Main topics include: How to Get PHP, PHP Extensions, Building PHP for CGI Use, Building PHP as an Apache Module, Building mod_php as a Dynamically Loaded Object, Testing Your Installation, Going Further/In Conclusion, Building Apache at Lightspeed, Apache Source Components Provided by Linux Distributions, and Fixing Red Hat 6.1's apxs Script.
Writing your first PHP script
Learn how to get started with PHP programming. This beginner tutorial walks you through the process of writing a simple PHP script and shows how PHP scripts are put together.
PHP Syntax
This tutorial describes: How to begin and end a PHP code block, How a PHP input file will be processed, How to enter comments in a PHP code block.
get remote page title and description
This PHP class will help you get remote page title and description. Could be useful for automating link exchanges.
 
Categories