Posts tagged as 'PHP'

If you want to create AVM2 swfs from PHP

If you want to create AVM2 (Actionscript 3) swfs from PHP then this file may be useful. It creates the number formats used in AVM2 swfs. I created these functions for the SWX project and am releasing the code under the MIT licence so it can be used in other projects too…

PHP Password Security

If you build websites that require users to register it’s your responsibility to keep their passwords safe. And if you’re storing the passwords in plain text then you’re not doing your job properly. What happens if your database is stolen? It’s not just your site that is compromised. Since most users use the same password on multiple sites, all those sites have also...

New Wishlist site

I’ve been posting a lot about the Zend Framework recently. That’s because I’ve been using it in building a new version of my wishlist site. The new site is called One Wishlist and is at onewishlist.net

Managing 404 errors in the Zend Framework

In the Zend Framework there’s no obvious way to deal with all page not found errors in one place, including instances where the controller doesn’t exist and where the action doesn’t exist. In this post I show the code for a Zend Framework plug-in to handle all 404 errors in one place only, automatically displaying the 404 error page if the Controller or Action aren’t...

Zend_View helpers in include path

I’m using the Zend Framework at the moment and came across a problem with creating custom helpers for the Zend_View class. All is fine if you place your helpers either within the zend framework’s own helpers folder (not a good idea) or within a directory in your site structure. The problem arises if you place the helpers in a folder in the PHP include path and don’t know...

Why I like the Zend Framework

I’ve been researching the Zend Framework for PHP in relation to a project I’m working on and I have to say I’m now a fan of it. There’s lots to like about it, and some to dislike about it too…

PHP mail() function and GMail

or Another reason to avoid PHP’s mail() function…

PHP 5.2 – Nesting level too deep – recursive dependency?

I installed PHP 5.2 on my testing server today and a couple of bits of code that previously worked fine in version 5.1.6 threw fatal errors in the new version. The error message was “Nesting level too deep – recursive dependency?” and it took a little time to track down the root of the problem. Here’s what happened…

next page