Trent Walton:
Hover states are everywhere.A I don't think I've ever written a stylesheet or designed a site without putting a significant amount of thought into how they should behave. As users, we've been conditioned to rely on hovers states to trigger changes in link color, reveal action items, and navigate through multiple tiers of a drop-down menu.
Fascinating how mobile devices are forcing designers to rethink their decisions and rethink a€obest practices.a€ť One thing I dislike is the current...
Here's what was popular in the PHP community one year ago today:Brandon Savage's Blog: Installing PHP 5.3 On Ubuntu
NETTUTS.com: Kohana: The Swift PHP Framework
SitePoint.com: How To Handle File Uploads With PHP
Jeremy Zawodny's Blog: Database Abstraction Layers Must Die!
SitePoint PHP Blog: How to Install PHP 5.3 on Windows
Till's Blog: Nginx+PHP+FastCGI: Testing your web application with bleeding edge PHP
Rob Allen's Blog: Bootstrapping modules in ZF 1.8
Benjamin Eberlei's Blog: Using Symfony...
Have you ever though about extending mysqli's classes. It's pretty simple to subclass the connection class mysqli. However, subclassing mysqli_result and mysqli_stmt is not so obvious, actually I though that it's even not possible.
However, never say never! After discussing mysqli's OO interface for an hour yesterday, with Johannes and Ulf, and breaking two tests of mysqli - 062.phpt and 063.phpt, because I tried to final-ize mysqli_result and mysqli_stmt, as well as make their constructors private, I...
JohannesS is a developer who is a hard-core user of the console. Thus, he doesn't like using a browser to visit php.net just for reading documentation.
This is it. I've had enough! Seriously, people. OAuth is about maintaining control as a user and everyone wants me to give it up! I'm tired of constantly clicking deny.
What am I complaining about? The constant abuse of Twitter OAuth login. Every site that I've visited that uses Twitter OAuth requires both read and write access to my account. The latest to do this is Paper.li, a service that looks really cool,
buta€¦
So what's the fix? Websites should ask for the minimum amount of information needed to...
Goran has pointed out a plugin for Eclipse that can help those out there wanting to adopt Test-Driven Development into their process - MakeGood (screenshot here).MakeGood provides a test runner to run unit tests on Eclipse PDT. MakeGood strongly supports Test Driven Development (TDD) by various features.Features in the plugin include:
Runs all tests when a file is saved.
Debugs a test.
Reruns the last test.
Can use the system include path when running tests.
It supports both PHPUnit and SimpleTest so...
On the Symfony-Reloaded site (the site for the upcoming Symfony2 version of the framework) there's a recently updated page talking about bundle best practices to use when creating these standardized, easy-to-install packages.A bundle is a directory that has a well-defined structure and can host anything from classes to controllers and web resources. Even if bundles are very flexible, you should follow some best practices if you want to distribute them.There's a few standards they lay out concerning the...
On the SymfonyLab site today there's a new post about one person's experience in setting up Symfony2 on a Windows system and some of the issues they found.'ve finally decided today to install symfony2 under Windows7 and see what the beast it is. Also it's interesting to see its status, I really can't believe s2 can be ready until end of year. So I've decided to go with simplest "sandbox" way and after unzipping verify my environment by using this script (as proposed in quick start manual):...
From the "just because you can" category today Lunant has created a port of the Lisp language via an interpreter in PHP - Lisphp.Lisphp is a Lisp dialect written in PHP. It was created to be embedded in web services or to be distributed within web applications. For that reason, it implements sandbox environment for security issues and multiple environment instances.You can grab the latest code from the github page for the project as well as check out some of the tutorials and details about using the...
We have today released Recite CMS 2.1.17, which contains a number of bug fixes and improvements. In addition, we've released the new locations package. The screencast on this page demonstrates its functionality.
The location package is available to all users of Recite CMS.Some of the improvements in this release (and in the various package updates) include:Upgrade to Zend Framework 1.10.6Upgrade to CKEditor 3.3.1Ability to access extra data when outputting custom fieldsAbility to create custom "location"...
On the RIA Zone today Ryan Stweart has posted a new tutorial about using Flex and PHP to chart out some data pulled from a backend database with just a hint of animation on load.Creating charts and data visualization is one of the areas where Adobe Flash shines. The combination of a very powerful drawing API that makes it easy to generate artwork and the interactivity means that Flash is ideally suited for integrating data visualizations. It used to be that you'd have to be very familiar with Flash and...
Court Ewing has written up a new post about using Zend Framework modules and things you need to worry about with considering autoloading and namespacing them correctly.Modules are natively supported in Zend Framework, but their implementation is not conducive to flexible autoloading nor the use of namespaces in PHP 5.3. There may be a few contributors out there that will defend the current implementation of module autoloading, but throughout the development lifecycle of the current Model-View-Controller...
Class CAPTCHA
jAPI Direct
Generic Pagination
te-edu Password Meter
Gdata google docs
Simple Login Class
Task Types
UploadClass
EasyCry
Todo List
Words Filter
Redirection Detector
Image Edit Class
D3Css
Expire Class
On PHPRiot.com Quentin Zervaas has posted the latest article in his "Zend Framework 101" series that talks about several of the more well-used components of the framework. This time he take a look at the Zend_Oauth component that allows your application to talk with remove OAuth service.To demonstrate how to use this component, we're going to create a basic script that allows a user to log in to their Twitter account and post a status update. Twitter is currently phasing out "basic authentication" and...
On the FinalConcept.com.au blog there's a new post from Adam Pullen showing how to solve a common issue with user logins and timeouts in Symfony applications (especially those using something like sfGuard).Symfony uses the PHP session management sub-system to store tempoary user specific data. When using the sfDoctrineGuardPlugin, or any other application guard, the timeout and lastRequest data are stored. [...] Since PHP has no clue of Symfony it will happily delete all session files that are older than...
In a quick post to hos blog today Stoimen Popov points out a handy feature of the preg_match function in PHP (in PHP 5.2.2 and higher) to be able to name the results of the regular expression match.In PHP 5.2.2+ you can name the sub patterns returned from preg_match with a specific syntax. [...] This is extremely helpful, when dealing with long patterns. [...] Although it may look difficult to maintain, now you can simply name the sub patterns of preg_match and to call them with their associative array...
In a new post to the Symfony blog, Fabien Potencier talks about the Symfony2 documentation and requests feedback from the developers and users out there on the quality and correctness of things so far.As you might have noticed, the Symfony2 documentation grows every single day. Since the Symfony2 Live Conference, I regularly publish new documents for Symfony2, like the best practices to follow for Symfony2 bundles. I think it's now time for the community to provide feedback on the Symfony2...
On NETTUTS.com today there's a new tutorial talking about something many frameworks make pretty heavy use of - helper functions.Every workman needs a good toolbox, and web developers are no different. PHP helper functions are designed to speed up and homogenise repetitive tasks, and make your life that much easier. This first tutorial explains how to make link helpers that will improve your methods for adding hyperlinks and mailto links in your web applications.They give several examples of a helper...
As Sameer Borate points out in his latest post to his blog, there's a way to disable that pesky suppression operator (@) in your PHP installation thanks to the scream extension.PHP supports one error control operator: the at sign (@). When prepended to an expression any error generated by that expression will be ignored. It can also be useful for hiding errors generated by various functions. [...] Although quite useful at some times, using the @-operator can have some annoying side effects.He shows you...
Modules are natively supported in Zend Framework, but their implementation is not conducive to flexible autoloading nor the use of namespaces in PHP 5.3. There may be a few contributors out there that will defend the current implementation of module autoloading, but throughout the development lifecycle of the current Model-View-Controller implementation in the framework, poor design decisions have made working with modules less flexible and more frustrating.
The First ProblemThe problem stems from the...
|
Latest PHP Tweets
|