DevShed: Building a Logout Class
94060
DevShed has posted a new tutorial today about building another common component of a website - the logout component.   The main function of the logout class is to log out a user and then redirect the user to the login page. On a programmatic level, the logout class terminates and destroys the session variables that the login class created for the user and also logs the exit time to the database. This article will show you how to create a logout class. It is part of a series on application framework components.   They build out the simple part of the class first, handling the variables and all and then move on to handling the logout and updating the database to reflect the user's status. They finish the tutorial off by giving both the database structure for the component and an example of it in action.
463548
On the PHPClasses.org website there's a new entry covering, among other things, one handy feature PHP includes to let developers read and write their data more flexibly - streams.   This article explains what are stream handlers and how they simplify PHP developers lives by allowing PHP applications to easily read and write data from containers, like remote Web pages or e-mail messages, as if they were files. [...] The article also presents more examples of cool stream handlers classes submitted to the PHPClasses site by several authors.   He describes the abstraction that the streams interface allows, how they can make your life easier, a real-life example of streams in action (working with POP3) and some of the classes that have been contributed to PHPClasses.org that use them.
321583
Latest PHPClasses.org Releases:NodeezMySQLList content of directoryPablosky MySQLRImageManipulatorMySQL PaginationHTTP LocaleMySQL DB Class with  Data Manipulation Class TimeTaMeREasy PHP ValidationFiltreatmentImage to ASCII textKDoubleMetaphoneGeo Conversion
253381
Latest PHPClasses.org Releases:Nweb ImageLeast Squares FitCalendar CalculationsParagraphGDColorSimple EnumerationFile Exchange ProtocolFind dateNaf_ValidatorGeneric Form classMulti Threaded Daemon
517091
Fixes made for "critical" JavaScript vulnerability in the Firefox browser and the SeaMonkey application suite.
122012
In a new posting on Chris Shiflett's weblog today, he shares with the world a little bit of what he's written for php|architect - a free version of one of his columns: Security Corner: Session Fixation.
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
431197
DevShed continues its look at the Decorator pattern with this new article today talking about working with MySQL result sets inside of the structure of the Decorator pattern.   Definitely, the pattern in question can be used for generating different types of outputs (or views) based on a returned result set, by using a few decorator classes that I'll define in the course of this tutorial. Hopefully, when you finish reading these lines, you should have a clear idea of how to include decorator classes in your object-based PHP applications.   They start off by showing how they're going to handle the MySQL result sets normally with a class and how to use that class in an example. Finally, they tie all of that in with the Decorator pattern, creating multiple Decorator classes to handle the various MySQL result set types.
515933
Evolt.org has a new tutorial posted today concerning something that I still get a lot of questions about - creating a PHP Login System with Admin Features.
339394
DevShed continues its look at the DirectoryIterator functionality in PHP5 with the second part of the series today - "Finding Paths, Timestamps and More with the DirectoryIterator Class in PHP".   Are you interested in having at your disposal a quick reference for working with the "DirectoryIterator" class that comes with PHP 5? Then this might be the article that you've been waiting for! Welcome to the second tutorial of the series "A Close Look at the DirectoryIterator Class in PHP 5." Over the course of this set of installments, you'll find complete coverage of the most important methods bundled with this class, and learn how to take advantage of their excellent functionality.   They cover even more functions in this part:  rewind, current, valid getFileName, isFile getMTime, getATime, getCTime getPath, getPathName  Each set is supported by code and explaination to help introduce their concepts in a useful way.
186014
Latest PHPClasses.org Releases:Simple CURL WrapperMoney CurrencyDraw SudokuPlay List ImportercPanel APIDate Drop Down List GeneratorBig Number CalculatorRSS ErrorSession in CookiesPHP MS WordOverall Tag ViewGoogle Calendar WrapperGraidleAJAXed list boxes
396345
Sandro Zic recently gave a presentation on Java and PHP, and posted his slides here. I didn't attend his talk, so I don't have all the facts, but I would like to comment on one of his slides [...]. First, a minor point. Limited or no OOP has rarely stopped any software from being enterprise-ready. Most modern operating systems continue to be written in C, and the large Cobol programs running on mainframes that manage your bank accounts and insurance do not use OOP. [...] Let's address some of his other criticisms: Virtually no multi-threading, Lack of maintenance tools, and Immature frameworks.
689192
Finishing off their series on destructors in PHP5 applications today, DevShed has posted this new tutorial showing how to manually run the destructors of your class (in case there's ever a need).   In this final tutorial of the series I'm going to show you how to manually trigger a destructor, and in addition you'll learn how to emulate the behavior of this magic method when using PHP 4.   They not only talk about how to call the destructor manually but they also show how to call multiple destructors at the same time to destroy lots of objects at once. And, as promised, they include a method for being able to use a destructor-like bit of functionality in a PHP4 app as well.
295092
How often have you thrown up your hands in disgust at the poor quality of documentation for an open source project?  Wouldn&#8217;t it be nice if someone put together a documentation coverage tool that worked like test coverage too ls?  Well, you&#8217;re in luck&#8212;dcov is here (at least for Ruby code).
197002
On the SitePoint PHP blog today, Troels Knak-Nielsen has written up an article that talks about dependencies in your applications - those little interconnections your code relies on to do more with less.   In lack of better words, I'll call this compositional programming style. It's a style which is usually more prevalent with experienced programmers. [...] There is, however, a dark side to composition - dependencies.   He starts with a definition to bring everyone up to a level field then moves on to how their used (through a "global symbol" or directly passed in) and how they can "leak" if you're not careful.    To help protect you and your code from any kind of damage down the line, Troels suggests making a container to keep objects where they need to be. He even includes an example with namespace support to make things even easier down the road.
127648
Latest PHPClasses.org Releases:AShellPassword Generator & CheckerBPT_SessionManagerSubmit SecurityFTP Folder Copy or DeleteOcheck classIniInteractionBPT_LoggerPostgreSQL Backup and RestoreXML2Array_xmlreaderClaseDateTimeManagerPDO_EXTpopupMsgClase DateTimeManagerLiveValidationPHP
318761
DevShed ramps up another new series today with this new article giving developers a look at working with object-oriented programming through the eyes of design patterns. It's another excerpt from the George Schlossnagle book "Advanced PHP Programming".   This chapter provides an overview of the advanced OO features now available in PHP. Some of the examples developed here will be used throughout the rest of this book and will hopefully serve as a demonstration that certain problems really benefit from the OO approach.   The article lays down the foundation for the more complex information to come. It introduces object-oriented programming briefly, and talks about some of the handy features of it - like inheritance, static attributes and methods.