Tag Archives: code sample

jQuery: Checking or Unchecking All Checkboxes

Providing functionality to check all, uncheck all or even to invert the checkboxes currently selected on a page is pretty simple to achieve with either plain old JavaScript or the newer, more flashy jQuery library. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , , , , , , | 8 Comments

PHP: Extract a Zip File’s Contents

PHP-logo

The other day I needed to automate the unzipping and processing of files contained within a zip archive. Using the existing PHP Zip library and some help off the web, this is what I was left with: Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , | 7 Comments

PHP Code to Extract Attachments from Mail Files

PHP-logo

For a recent project I needed to parse .mai mail files to locate excel and zip files that may have been sent through as attachments. The following block of code is the result of my work: Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , | Leave a comment