What is Zoop?Zoop stands for Zoop Object Oriented PHP Framework. In development since 2001, Zoop is based on the MVC architecture that supports separation of display, logic and data layers. Its integrated handling of errors can be used for logging errors for production environments, which renders bugs easy to discover. Zoop features a Smarty based view layer, which offers form generation and rich UI controls. Using it, even an inexperienced coder can create web applicat... Read More »
Allows you to easily keep track of a series of items as either odd or even. Each time you check (using the "which" method) the counter increments so that the next time you check the state will have changed. This is the perfect class for using when you're outputting an HTML table and want to use different classes to differentiate between odd and even rows. Simply create a new instance and call OddEven->which() for each row![code]/** * Allows you to easily keep track o... Read More »
This will check an email, to see if it is in a valid format.chkEmail.html[code]<form action="chkEmail.php" method="post"> Email: <input type="text" name="email"> <input type="submit" value="Check Email"></form>chkEmail.php<?php $email = $_POST['email']; if(preg_match("~([a-zA-Z0-9!#$%&'*+-/=?^_`{|}~])@([a-zA-Z0-9-]).([a-zA-Z0-... Read More »
By David Cummings
So now you’re a proficient Web programmer dabbling in the famous open source language PHP. The only downside is that the language allows the programmer to be sloppy and decrease application performance unknowingly.
At my company, we use PHP on a daily basis and have many different styles and rules we try to employ to make our (rather l... Read More »