Skip to content
DevChunks

DevChunks

Web development tips, tricks and advice

  • PHP
  • MySQL
  • JavaScript
  • Tools
  • Store
  • About
  • Contact
DevChunks
DevChunks
Web development tips, tricks and advice
  • PHP

    Looping an array? Do it the foreach way

    ByCarey November 20, 2010May 16, 2026

    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.

    Read More Looping an array? Do it the foreach wayContinue

  • Server

    Cron Not Available? Try WebCron

    ByCarey November 18, 2010May 16, 2026

    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.

    Read More Cron Not Available? Try WebCronContinue

  • Other

    Making Code Readability a Priority

    ByCarey November 14, 2010May 16, 2026

    Why code readability matters more than saving bytes, and how a little more verbosity makes your code easier to maintain in a collaborative world.

    Read More Making Code Readability a PriorityContinue

  • Tools

    Stay On Top – Get All Your Info using Feeds (RSS, ATOM, etc.)

    ByCarey November 12, 2010May 16, 2026

    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.

    Read More Stay On Top – Get All Your Info using Feeds (RSS, ATOM, etc.)Continue

  • PHP

    Storing Simple Values and Parameters – define() PHP constants

    ByCarey November 10, 2010May 16, 2026

    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.

    Read More Storing Simple Values and Parameters – define() PHP constantsContinue

  • Other

    Improving Your Skills by Freelancing

    ByCarey November 8, 2010May 16, 2026

    Why taking on freelance projects is one of the best ways to improve your development skills, stay motivated, and learn by achieving real goals.

    Read More Improving Your Skills by FreelancingContinue

  • PHP

    PHP REGISTER_GLOBALS turned off? Hack It Back

    ByCarey November 6, 2010May 16, 2026

    A PHP code snippet to replicate REGISTER_GLOBALS behaviour when the directive is turned off, intended only for testing or closed environments.

    Read More PHP REGISTER_GLOBALS turned off? Hack It BackContinue

  • PHP

    Simple Shortcut to PHP echo – Keep it Neat and Tidy

    ByCarey November 4, 2010May 16, 2026

    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.

    Read More Simple Shortcut to PHP echo – Keep it Neat and TidyContinue

  • PHP

    Debugging an Array – Print it Recursively with print_r()

    ByCarey October 27, 2010May 16, 2026

    How to use the PHP print_r() function to print an array recursively and see every dimension in a clean, readable, formatted output.

    Read More Debugging an Array – Print it Recursively with print_r()Continue

  • JavaScript

    Facebook Photo Tagging in Javascript

    ByCarey October 25, 2010May 16, 2026

    Notes on finding a JavaScript solution for Facebook-style photo tagging, including the now discontinued Photo Notes library.

    Read More Facebook Photo Tagging in JavascriptContinue

  • MySQL

    If you need indexes, MySQL will EXPLAIN

    ByCarey October 23, 2010May 16, 2026

    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.

    Read More If you need indexes, MySQL will EXPLAINContinue

  • MySQL

    MySQL Password Function – OLD_PASSWORD() and PASSWORD()

    ByCarey October 21, 2010May 16, 2026

    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.

    Read More MySQL Password Function – OLD_PASSWORD() and PASSWORD()Continue

Page navigation

Previous PagePrevious 1 … 4 5 6 7 Next PageNext

Get notified of new posts:

Facebook X Instagram
  • About
  • by ameN
  • Contact
  • Privacy Policy

© 2026 DevChunks

  • PHP
  • MySQL
  • JavaScript
  • Tools
  • Store
  • About
  • Contact