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

    PHP Quotes and Apostrophes – the Difference

    ByCarey October 19, 2010May 16, 2026

    Learn the difference between single quotes and double quotes in PHP, when each is evaluated, and why apostrophes are the faster default for strings.

    Read More PHP Quotes and Apostrophes – the DifferenceContinue

  • PHP

    PHP Header Redirect? Don’t forget to die();

    ByCarey October 15, 2010May 16, 2026

    Why you should always follow a PHP header() redirect with die() or exit(), so code after the redirect does not keep running for the user.

    Read More PHP Header Redirect? Don’t forget to die();Continue

  • Productivity

    Take Regular Backups

    ByCarey October 9, 2010May 16, 2026

    Practical advice on taking regular backups of your code, websites and databases, plus common backup pitfalls like never testing your restores.

    Read More Take Regular BackupsContinue

  • MySQL

    Incorrect usage of UNION and ORDER BY

    ByCarey October 7, 2010May 16, 2026

    How to fix the MySQL error Incorrect usage of UNION and ORDER BY by wrapping each SELECT statement in parentheses when you order data sets.

    Read More Incorrect usage of UNION and ORDER BYContinue

  • PHP

    Using the PHP Modulo Operator

    ByCarey October 5, 2010May 16, 2026

    How the PHP modulo operator works and how to use it to highlight every nth item in a loop, with examples for pagination and progress feedback.

    Read More Using the PHP Modulo OperatorContinue

  • MySQL

    Importing Large MySQL Database SQL Dump Files

    ByCarey October 19, 2009May 16, 2026

    How to import large MySQL SQL dump files without phpMyAdmin timeouts, using the free BigDump script to split and import the file automatically.

    Read More Importing Large MySQL Database SQL Dump FilesContinue

  • Other

    .htaccess Redirect from Non-WWW to WWW

    ByCarey July 21, 2009May 16, 2026

    An .htaccess rule that redirects non-www URLs to www to avoid duplicate content, written so it works on any site without editing the code.

    Read More .htaccess Redirect from Non-WWW to WWWContinue

  • PHP

    The PHP Ternary Operator

    ByCarey January 20, 2009May 16, 2026

    How the PHP ternary operator shortens simple if and else statements into one readable line, with examples and advice on when not to use it.

    Read More The PHP Ternary OperatorContinue

  • Other

    Thoughts on Code Comments

    ByCarey February 16, 2007May 16, 2026

    Practical thoughts on writing good code comments: keep them short, make them readable, update them, use TODO notes, and add useful links.

    Read More Thoughts on Code CommentsContinue

  • hosting

    1and1 hosting server logs

    ByCarey December 13, 2006May 16, 2026

    A note for 1and1 hosting users: server logs are deleted after three months, so download the access.log files regularly to keep your statistics.

    Read More 1and1 hosting server logsContinue

Page navigation

Previous PagePrevious 1 … 5 6 7

Get notified of new posts:

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

© 2026 DevChunks

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