Looping an array? Do it the foreach way
Why the PHP foreach loop is the clearest way to loop through an array of users by key and value, compared with a traditional for loop.
Why the PHP foreach loop is the clearest way to loop through an array of users by key and value, compared with a traditional for loop.
What to do when your host has no cron support: use a WebCron service to run your scripts automatically at set intervals over the web.
Why code readability matters more than saving bytes, and how a little more verbosity makes your code easier to maintain in a collaborative world.
How RSS and ATOM feeds help developers keep up with security updates and tips, with advice on choosing a feed reader and adding your first feeds.
How to store fixed values like database settings and paths as PHP constants with the define() function to keep your code DRY and easy to change.
Why taking on freelance projects is one of the best ways to improve your development skills, stay motivated, and learn by achieving real goals.
A PHP code snippet to replicate REGISTER_GLOBALS behaviour when the directive is turned off, intended only for testing or closed environments.
A simple PHP shortcut for echoing a variable in HTML templates using short open tags, plus the short_open_tag directive you need to enable it.
How to use the PHP print_r() function to print an array recursively and see every dimension in a clean, readable, formatted output.
Notes on finding a JavaScript solution for Facebook-style photo tagging, including the now discontinued Photo Notes library.
How to use the MySQL EXPLAIN statement to check whether your queries are using indexes, read its output, and find slow JOIN or ORDER BY columns.
How to use the MySQL PASSWORD() and OLD_PASSWORD() functions, why the hash length changed in MySQL 4.1, and how to avoid breaking your app.