Control structures are some of the coolest things in PHP. They take a lot of the work off of your shoulders and place the burden on the language itself. They are especially useful for making sites where you need to make a page do something over and over again. A simple looping statement, when used correctly, can pull all of that information for you and do it over and over again, thus making a large page like that a breeze. This article explains how to use these control structures and what each should be used for.
This tutorial describes how to build a basic admin interface to allow you to add and delete users from the browser instead of having to Telnet into the mySQL monitor and do it manually. Main function dealt here is to create a dynamic drop down list populated with usernames in the MySQL database.
Version: n/a Platform(s): n/a Updated: Sat Jul 29 2000
Unlike PHP 3, PHP 4.0 has built-in capabilities to handle session management. The session management functionality in PHP 4.0 is easy to use, powerful and open for custom modifications. Creating sessions allows you to keep track of the actions of a particular user over the period of time she is viewing your web site. To associate session data with a user, you need a session identity number, that is, a key that ties the user to his data. This tutorial discusses how to open sessions, track session data, and clear the data when you no longer need it.
Version: n/a Platform(s): n/a Updated: Mon Jun 19 2000
This tutorial teaches you how to write and use classes, to make your PHP code more flexible and easier to manage. The tutorial guides you through the construction of a simple, security-related class that performs some basic security functions for a web site: checking user logons. The class implements security features that answer some needs for a number of current security models and could be easily implemented at most dynamic Web sites. Note that this class does not provide a full security solution.
Version: n/a Platform(s): n/a Updated: Mon Jun 19 2000
A large portion of Web programming requires strings to be handled and generated, so knowing how to use and handle strings properly is extremely important for PHP programmers. This tutorial starts with the simple constructs used to create strings and moves through to more advanced techniques for string handling.
Version: n/a Platform(s): n/a Updated: Mon Jun 19 2000
Couple Object-Oriented Programming with PHP and you've got features worth inheriting. From foundations to class to inheritance, this article makes understanding objects within PHP easy--and practical.
Version: n/a Platform(s): n/a Updated: Wed Jun 7 2000
Need to build an online shopping cart in a hurry? This article takes a look at session management, an important component of transaction-based Web sites, and explains the fundamentals of adding session support to your site. Examples in PHP4 and PHP3 with PHPLib.
Version: n/a Platform(s): n/a Updated: Wed May 10 2000
This article covers several useful topics on PHP programming from basics to working with database. Main topics include: mod_php - Hello World, PHP Programming, Maintaining State on a Single Page, Maintaining State Between Multiple Pages, PHP Data Enabled App Using PostgreSQL, and Installing phplib in a Postgres Environment.
This article talks about a technique for debugging CGI programs written with the PHP scripting language. Topics include: Creating the Debug Class, Testing the Debug Class, Using the Debug Class, Production Debugging, and more.
Version: n/a Platform(s): n/a Updated: Tue Feb 22 2000