JBLabs Blog:  How to create a zip archive using PHP
13128
On the JSLabs blog today, there's a (short) new tutorial showing an alternate method to creating a Zip archive in PHP (rather than with the zip extension).   He illustrates the creation of simple archive that pulls in a test file from a given path. This is then pushed into the zip archive and packed down and exported. He also notes the different compression levels that it can be created with - no compression, bzipped and gzipped.   You can download the library here.
673968
On the Zend Developer Zone, they point out a handy little image manipulation class they've come across - GenXDesign's PHP Thumbnail Class - as well as some details about it.    I've seen a lot of implementations of thumb nail functionality in PHP, I've even written a couple of my own. I like this class thought. In looking over the code the first thing you notice is that it's clean code. I don't mean they use the latest whiz-bang method to cshave a few keystrokes.    This code is simple, nicely formatted and easy to read through. My only real problem with the code itself is that it is not terribly well documented. That can be forgiven since easy to read.    Cal talks about some of the other features of the class, including that it works with gif/jpeg/png images, makes it easy to set the quality of the jpgs, and makes it easy to display the dynamic images directly to the browser. Check out the demo for more.
357861
phpwsBB is a native bulletin board module for the phpWebSite content manage system, version 0.9.3-4 or later.  It features thread monitoring and administration, including marking threads sticky, locking threads, and forking messages off to new threads.  For some reason I had made use of PHPWS_File::makeDir(), even though it doesn't exist in phpWebSite 0.9.3-3, just >= 0.9.3-4.  I didn't notice because the bug only makes itself known on fresh installs, not updates, where I didn't call that function, simply because I forgot to update the mkdir() call.  Anyway I'm now making full use of PHPWS_File::makeDir() and changed the system requirement to reflect this.  I've also pulled the 0.9.6 release to avoid further confusion.  http://phpwsbb.sourceforge.net
261826
PHP Magazine has posted their latest issue of the PHPBarnstormer (Issue #19):
126500
DevShed is starting up another new series today, this time looking at the DirectoryIterator methods out of the Standard PHP Library functionality.   Because this class might be handy to use in projects where handling directories is a must, in this new series I'll be taking a close look at some of its most important methods. We will explore these methods appropriately in conjunction with the corresponding code samples.    They introduce the class, noting why it's handy to use and where's the best place to use it - including an example. They get into a bit more detail, looking at the key() and current() methods as well as using the rewind() method to reset the pointer for the directory.
416917
php|architect's A/R/T article repository has a new tutorial posted today with a look at logging in your application (the entire application) with the help of the Zend Framework by Stefan Koopmanschap.   There are different reasons for logging information, different strategies for what and how to log, and of course different ways of implementing it. This article will look at why you would want to log, what you want to log and how to do it.   They introduce  application-level logging, how it can help, what it can show you, and how it can make finding security issues even easier. They get into the code a bit later on, showing how to use the Zend file functionality to write out to a simple log file. They enhance it with a bit more information in the message, and show how to set a prefix/suffix to each line automatically (like a timestamp and a newline).
152445
Latest PHPClasses.org Releases:Flash MessagesRSS and Atom Feeds Processing APImabp::tagCloudUltimate MySQLerror_managerSingly Linked ListChinese Encode ConvertphpSortableASCII Art GeneratorPSPLMultiselectNiftyCubeAmazon ECS Webservicesimple Email ClassPHPDance
192057
Evert Pot has posted about a library he's creating to integrate WebDAV support with PHP and make things simpler for those needing to access the shares.   I intend to make this library as easy as possible to use, without making it a black-box-like system. Focus will not be on everything WebDAV could possibly provide, but instead on the features that are actually supported by the operating systems.   His goal is to make it as simple as making a 'File' and 'Directory' class to interface with the remote system and has two things he's deliberating on as far as features to include in the library - support for the custom properties WebDAV allows and the ability to lock files and directories.   If you'd like to check out the current progress of the library, check out its page on the Google Code site (as well as this discussion group he's set up).
251767
The ProDevTips website has posted part seven of their series covering the construction of a community site (or CMS) with the combination of Smarty and the Zend Framework.   Since XOOPS didn't do it for me when it comes to this project I have started with the blog component. As it turns out, a blog is more complicated than you would think. Therefore this part will not cover the whole component, only as far as I've gotten at the moment. Covering the whole process in one piece would make it a very long piece indeed.   He provides the code examples and complete SQL structure to get the blog up and rolling as well as some handy tips and explanations along the way.
660571
DevShed is starting up a new series this morning with this new tutorial, part one in the creation of a simple blogging system using PHP and MySQL.   In this three-part tutorial we are going to be creating an open blogging system. We are also going to provide scripts that will make it possible to switch to a closed blogging system. This article, which is the first part, will cover the creation of the login scripts for a closed system.   They start with a definition, the difference between an open blogging system and a closed one (if users have to register or not). They start with the creation of the database to store the users in followed by the PHP code for the simple login page. It uses sessions to keep track of which user is logged in. Of course, where there's a log in, there needs to be a log out and they give the simple code for that. Finally, they include a "forgot your password" script to help users when they can't remember the info they'd signed up with.
642167
Newly posted over on PHP Magazine's website is this week's latest PHPBarnstormer - Issue #11
647066
DevShed has posted the second part of their (three part) series looking at the construction of a blogging application in PHP5. In this part, they look at how to handle the user's desire to input entries into the application via a HTML form.   In this second installment of the series, I'll show you how to expand the initial functionality of the already familiar "BlogProcessor" class so that it is capable of addressing all these (displaying all the entries, show the insert/update forms) issues.   They start with the simplest of the group - the displayBlogs method, outputting the full contents of the entries for the blog. Things get a bit tougher with the next step - creating the insert and update forms for pushing content into the database. Finally, they defined the header and footer functionality to make setting up the structure of the page simpler.
273337
Here's what was popular in the PHP community one year ago today:Job Posting: National Auto Warranty Seeks MySQL DBAJob Posting: National Auto Warranty Seeks PHP Web App Developer (Wentzville, MO)DevShed: Creating a Login Script for a PHP Invoicing SystemZak Greant's Blog: The eZ partner program (response to Seth Gottlieb's Commercial O/S business post)php|architect: Application-level Logging with the Zend FrameworkPaul Reinheimer's Blog: Object-Oriented PHP, Concepts, Techniques, and CodeRyan Malesevich's Blog: Fight Spam Comments with Bad Behavior and AkismetZend Developer Zone: SQLite: Lean, Mean DB MachineBuilderau.com.au: Cache PHP scripts with APC modulePro-PHP Podcast: Interview With Cal EvansSitePoint PHP Blog: PHP extension for Cairo graphics libraryTechnobabbler.com: making a radar loop with PHPDevShed: Working with MySQL Result Sets and the Decorator Pattern in PHPJob Posting: exhibit-E Seeks Interactive Developer (New York, NY)Jacob Santos' Blog: Patterns for PHP: Page Controller Draft
765191
Justin Silverton writes, in a new post to the JSLabs website, about a webserver that has been written up entirely in PHP called Nanoweb.   Have you ever wanted a web server written entirely in PHP? Now you can with nanoweb. A project like this really shows the power of the PHP language.   Some of the features of the application include: HTTP/1.1 implementation, Modular architecture, Authentication support, MIME support, and, of course, PHP support. There's even been some performance stats created for it to show its robustness, and installation is as easy as running an install script (or batch file).
242013
Popular posts from PHPDeveloper.org for the past week:ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 6Nessa's Blog: Using an .htaccess with PHP Compiled as CGIArnold Daniels' Blog: How I PHP: The Output Handler - ContinuedMartynas Jusevicius' Blog: PHP 5 features: Class autoloadingSean Coates' Blog: Actually Solving a Problem (believe it or not)The Northclick Blog: Message Queue Project: First working versionStefan Mischook's Blog: A Question about object properties in PHP ClassesJob Posting: G2 Technology Seeks PHP Developer (Memphis, TN)Rob Allen's Blog: Zend_View: Access the view from a view helperDavid Walsh's Blog: Using PHP Generic Objects To Organize Your Code
698334
Popular posts from PHPDeveloper.org for the past week:The Bakery: Six New Articles/Tutorials PostedEvert Pot's Blog: PHP: Arrays vs. ObjectsDevArticles: Learning AJAXInternet Super Hero: PHP: mysqli_fetch_all()David Coallier's Blog: PHP Namespaces (Part 1: Basic usage & gotchas)I/O Reader: 15 Cool Things & 12 Things to Dislike About PHPProPHP Podcast: Newscast - August 16, 2007PHPBuilder.com: Dynamic XML with PHPSite News: Popular Posts for the Week of 08.17.2007PRADO Watch Blog: PRADO Watch: Interview With Timani Tunduwani - Why I Moved From CakePHP to PRADO
22547
Here's what was popular in the PHP community one year ago today:WaxJelly Blog: Simple PHP script using the YouTube API (with pagination)DevShed: Uploading Files and Navigating Directories in PHPPHPit.net: PHP5 Class Basics, Part 1SpinDrop.us: Using Zend Search Lucene in a symfony appCommunity News: PHP Appalachia IRC ChannelZend Developer Zone: Work with XML Data in the Zend FrameworkColdScripts.com: Mapping Framework PopularityWaxJelly Blog: A More Complex PHP script using the YouTube API (with video details) PART 2KillerPHP Blog: PHP Interfaces: when and why you should use them instead of classes?PHP-Tools Blog: Analyzing aide (advanced intrusion detection environment) output with PHPZend Developer Zone: Pro PHP XML and Web Services Sample ChapterZend Developer Zone: Cool Image Thumbnail ClassNefarious Designs: Object-Oriented PHP Part 4: PHP5's Improved FeaturesSebastian Bergmann's Blog: Zend/PHP Conference 2006William Candillon's Blog: phpAspect presented at the EPFL