How To Create Alternating Row Colors in PHP
35637
Almost every database driven Web site uses alternating row colors when displaying a list of records, a concept used all over the Internet. In this article you'll learn about the process and how to implement it. By Michael Berman. 0620
457694
Latest PHPClasses.org Releases:db connect classTrue Color PickerDbCodeBuilderProgramInsert or Update TablesAutomatic Drop Down MenuPlatform versioningSMTPseasyFormMagic Yahoo! Messenger Avatar GeneratorStringGridIAM-XLSphpTwitterGoogle Checkout Button
488516
The International PHP Magazine has links to announcements of three new releases of PHP-related applications - the PHP Advanced Graph and Chart Collection, Blitz Templates and the Generic PHP Plugins & Config System:   PHP Advanced Graph and Chart Collection 5.1 provides a very easy way to embed dynamically-generated graphs and charts into PHP applications and HTML Web pages Blitz templates 0.4.19 Blitz templates is a fast template engine written in C and compiled as a PHP module. It started as a php_templates replacement, but developed into much more. Generic PHP plugins and config system 0.75 Plugin meta descriptions can reside as human-friendly comment blocks in .php scripts. Generic PHP Config reads them and facilitates plugin and configuration setting management.
712717
Picking back up on his blog, Sean Coates shares a Dashboard widget he's created to do quick and dirty PHP interpreting on the fly:   I found myself using php -r on the command line to test some simple code snippets, and it occurred to me that this isn't "The Mac Way." So, following the excellent documentation at Apple, I managed to come up with something pretty useful in an afternoon.   His widget sits happily, ready to take in PHP code and output the result at the click of a button.
492488
A discussion of how to use frame styles in OOo Writer.
449459
DevShed continues their series looking at some of the fundamentals of working with PHP in this new tutorial posted today. It looks at one of the flow control statements the language has to offer and a very useful data structure - the switch statement and arrays.   In our last exciting adventure (back in early November), we braved crocodiles, ravenous editors, most of the PHP statements, and beginning loops. In this edition we'll cover the final statement, the Switch, and discuss arrays. So sit back, order your R2D2 robot to bring you a cold, frosty Jolt Cola, and let's get cracking.   They start with a simple example of a switch statement (to echo out strings) and follow it with a detailed description of the different sorts of arrays - numeric indexed, associative and multidimensional versions.
42139
In his latest post, Stoyan Stefanov introduces a new project he's working on, the implementation of CSS sprites:   This is a simple technique used for page load performance purposes. Since HTTP requests are the most expensive thing you can do in regards to front-end performance, you strive for making as little requests as possible. So instead of having the browser download 4 rounded corner images for example, you create one image that has all four. Then you use CSS' background-position to only show the part of the image you want.   He explains briefly how the system works and includes a simple example in PHP (showing how to use the imagemagik utility to create the custom image).
437494
Popular posts from PHPDeveloper.org for the past week:PHPClasses.org: A PHP killer feature - Streams abstractionRob Thompson's Blog: Switch vs. IfPHPEverywhere: Octopussy numbers in PHPJob Posting: MODE Visual Seeks PHP Developer (Charlotte, NC)ProDevTips.com: Why PHP as a templating language sucksMatthew Turland's Blog: The Yin and Yang of TypingStubbles Blog: Stubbles 0.5.0 releasedChristopher Jones' Blog: Updated connection pooling in PHP's OCI8 extensionBen Ramsey's Blog: Congrats Costa Rica PHP!Carsten Lucke's Blog: Configuration issues with Xdebug on Debian Etch
360849
On the Zend Developer Zone today, there's this new tutorial that looks at making the move from PHP4's object-oriented programming up to the "more complete obejct model of PHP5" - specifically with the Decorator design pattern.   While working on a project I realized one particular solution was a pretty good way to demonstrate the decorator design pattern together with some of PHP5's features, including abstract classes, interfaces, type hinting, the final keyword and the visibility of properties and methods. This article is intended for those of you who, like myself, are moving from object-oriented programming, including some use of design patterns, in PHP4, to the more complete object model of PHP5.   He sets up a scenario about the development of an online pizza ordering system to show how to "decorate" a pizza with each of the toppings on a list (instead of having to list out every pizza in every possible topping combination). Of course, all of the code is included and explained so you understand exactly what's happening. Finally, there's a demonstration of its usage - a simple call that grabs the stock level/name/cost of each of the items in stock (pizza combinations).
217574
As mentioned by Ed Finkler, there's a list of signs your PHP needs refactoring from Soledad Penades.    I have had to go through a php application recently which has given me more than one headache and has required me to use all my possible patience. While working with it, I thought This is good material for an article, so that nobody else does the same in the future, and nobody else will need to experience the same displeasure as I have had to.   So here are the signs your PHP application needs a serious refactoring, right now    Included in the list are things like:   Uses global variables Everything's an array The neverending switch Interface inconsistency   It hits on one of the thing that bugs me too, the problem of "Brackets galore" - so many subarrays that you have to resort to three or more sets of bracketed keys to get to the value you want. It's bad enough trying to follow someone else's code without having to "trace down" an array to figure out which of the values they're talking about.
696609
On his blog, Stoyan Stefanov takes a look at using on of the most popular pieces of PHP forum software out there - phpBB - and optimizing the front-end.   During this short workshop there will be no changes to the phpBB code, we'll create a new template instead, so that in case something bad happens, your board will continue to work normally. As an example, I'll use the bgcanada.com/phpBB2, the board I volunteer to administrate.   The tutorial is broken up into sections:   The plan New subdomains Creating a new template Moving CSS to an external file, merging Copying files to the new subdomains Serving gzipped content Turning ETags off Expires header Sysadmin summary   It looks like a lot of steps, but each section is relatively short and written well so as not to have more information than needed. In the end you'll have a simple template that uses Yahoo's 14 optimization rules to make things work that much faster.
746033
A press release has been published from Senza Limiti about their acquisition of the PHPScripts.se's Ajax-enabled DataGrid component and intentions to release it under both an Open Source license and a commercial license (like MySQL has done).   The PHP Grid is an Ajax-based table component that shows database information in a good looking, easy to use way. All user actions are performed in real time, on the client side, giving instant feedback and providing a desktop-like user experience. Among its features are Excel support and an automated print function that presents the table in a printable format. It also allows instant editing of database rows.   You can get the complete details on the component from these pages on Senza Limiti's website.
717032
This week you'll learn how to create a Joomla template that uses Cascading Style Sheets (CSS) to produce a layout. This makes the template code easier to validate. It also tends to load faster and is easier to maintain.`By Barrie North. 0211
541647
On Codewalkers.com today, there's a new tutorial posted concerning some of the looping features PHP has to offer.
676865
Ben Ramsey has posted a (quick) new items over on his blog that looks at solving two problems he was having with his blog - the now non-functional Flickr feed and a sorting problem with array_multisort.   I recently upgraded a few things around here (in particular, an upgrade to PHP 5.2), and I noticed two issues that occurred after the upgrade. [...] I easily solved both of these issues.   The correction to the Flickr feed involved changing the namespace information for his request (adding a trailing slash) because the SimpleXML functionality got a bit more particular about the format.   The problem with array_multisort involved adding in a parameter that was implied in previous PHP versions, SORT_STRING, to get his code correctly working.
139275
Popular posts from PHPDeveloper.org for the past week:PHP-Coding-Practices.com: Try-Catch Syntax WeirdnessPHPBuilder.com: Cross-Platform Database PHP DevelopmentIBM developerWorks: Java and PHP technology on AIX - Integrate the Java business application w/ DB2OpenSourceCommunity.org: What do you think makes a good CMS?Jonathan Snook's Blog: Elemental: Conditional Content with CakePHPDevShed: The Basics of Using the Factory Pattern in PHP 5Builder.com.au: PHP exploit code plants itself in GIFJohn Cox's Blog:  Linux.com Now PHP PoweredNick Halstead's Blog: Solving Programming ProblemsPHP-Tools Blog: Testing FIT
335499
The October edition of the php|architect magazine has been released. Articles in this latest issue include:   The cover story talking about optimizing your code into C++ an introduction to mod_rewrite creating a custom XML parser to replace SimpleXML and its quirks Building Vertical Market Applications with SugarCRM the Security Corner column talking about file inclusion   You can order this issue by itself (for about $5 USD) or you can subscribe to the magazine for only $40 USD for an entire year's worth of great PHP-related content.