 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Chris Renner's Blog: Gerrymandered Code Extending Zend_Registry to globalize session vars
by Chris Cornutt January 22, 2010 @ 10:29:50
Chris Renner has put together a new post showing how to use the Zend_Registry component of the Zend Framework to make your session variables easier to get to globally from other parts of your application (and standardize their access).
I've been using $_SESSION like this for a couple of years, and I've known the whole time it was a band-aid approach to solve the problem. Such an approach is not an ideal "design pattern." Though it passes my baseline rule - it works - there are downsides. [...] I refactoring my main app with Zend_Registry in place of my rat's nest of $_SESSION['config']['foo'] and such...which is mostly just things like email addresses for the system admin (me) and other global variables that may come in handy in any script or method.
He talks about how storing values in the session (especially configuration settings) is a bit of "Gerrymandered code" and that the Zend_Registry features allow you to completely replace the need for working directly with $_SESSION. To replace his current functionality, though, he still needed to work with the session values. The result? A wrapper class that has methods for getting and setting to make things a bit more clean.
voice your opinion now!
zendregistry zendframework global tutorial session
Alvaro Videla's Blog: Erlang as Session Storage for PHP
by Chris Cornutt January 19, 2010 @ 15:52:07
Alvaro Videla has a different sort of suggestion for storing the sessions for your application - use Erlang.
In the last few days I been playing with the PHP extension mypeb which allows us to connect to Erlang from PHP. As a simple example to show what we can do with this extension I will create a PHP class that will be used as the session_save_hanlder for PHP. [...] I will like to try something different by using this class to interact with an Erlang node that will act as the in memory storage for our sessions using ETS tables.
He uses the session_set_save_handler PHP function to point the application to a new location (away from the default filesystem handling) and to a custom ErlangSessionHandler object's "open" method. Also included are "close", "read" and "write" methods that let PHP talk directly to the Erlang instance. Code snippets are included.
voice your opinion now!
erlang session storage tutorial
Symfony Blog: Symfony Live Conference 2010 updates
by Chris Cornutt December 15, 2009 @ 11:42:22
Fabien Potencier has posted some updates to the Symfony blog about the upcoming Symfony Live event (in 2010) related to the sessions, their Training Day and some new sponsors.
Since the last time I blogged about the next Symfony Live Conference, I have a whole lot of exiting news. First of all, because I receive a lot of questions about the language of the conference, I want to say again that the whole conference will be held in English only. As a matter of fact, I can tell you than people from 24 countries have already registered for the conference.
Updates to the sessions include the addition of Matthew Weier O'Phinney and Dustin Whittle. The Training Day will be right before the conference and will have five tracks going at once. Check out the post for more on the updated sponsor listing.
voice your opinion now!
symfonylive2010 conference session training sponsor
IBuildings techPortal: PHP on the D-BUS
by Chris Cornutt November 10, 2009 @ 07:50:56
The IBuildings techPortal has posted the latest episode of their Dutch PHP Conference series of podcasts (as recorded at the DPC 2009 event). This new episode is Derick Rethans giving a talk on PHP and D-BUS.
The D-BUS Inter Process Communication mechanism is the basis for many system-related functionality on Linux-based systems. Both GNOME, KDE, as well as the Open Moko Linux computing platform use it extensively for everything related to talking to services and hardware. Skype, as well as other applications, provide D-BUS APIs as well.
His talk gets into the details of the PHP/D-BUS integration by creating a simple script to control a Skype instance and a PHP-GTK tool to talk to an OpenMoko application.
You can either listen via the in-page player or by downloading the mp3 directly.
voice your opinion now!
dpc09 conference session series
Hasin Hayder's Blog: Using new PECL Memcached extension for storing session data
by Chris Cornutt October 19, 2009 @ 09:51:21
Hasin Hayder has a new post talking about the new memcached extension for PHP (memcached from PECL) and how it can be used to store sessions data.
Many of you already know that managing session is a critical task for web applications, specially when you want to avoid I/O hop and also a significant load over your database by writing a custom session handler. [...] This is why a central session manager is very important for your application to scale.
He walks you through the whole process - installation, setting up memcached instances and getting the extension installed and working with your PHP installation. By adding two lines to your php.ini file, the sessions can quickly and easily be stored in memcache instead of on the local server.
voice your opinion now!
session data save memcached pecl extension
|
Community Events
Don't see your event here? Let us know!
|