Dave James Miller

Developer. Computer Geek. INTJ.

Month

June 2010

Splitting up PHP Mate

I have decided to split up PHP Mate, my "general-purpose" PHP library, into several smaller libraries... Read More

djmFlashMessage

github.com/davejamesmiller

Stores flash messages in the user session and clears automatically when displayed.

djmLinkify

github.com/davejamesmiller

PHP functions to make URLs clickable in plain text input.

djmNonce

github.com/davejamesmiller

Generate & check nonces to protect against CSRF attacks.

djmSingletons

github.com/davejamesmiller

Base class for holding singleton objects, automatically instantiating them when required.

Detect pipe/file input in a Bash/shell script

How to detect whether input is from keyboard, a file, or another process. Useful for writing a script that can read from standard input, or prompt the user for input if there is none. Read More

djmUtil

github.com/davejamesmiller

General utility functions and Smarty plugins.

Read More

djmDB

github.com/davejamesmiller

Custom subclasses of Zend_Db (database abstraction layer).

Read More

djmForm

github.com/davejamesmiller

Helper functions & Smarty plugins for creating web forms.

djmHead

github.com/davejamesmiller

Generate the <head> code (title, meta description, etc.) in the application controller/views t…

Read More

Download MySQL database from cPanel to development server (shell script)

This is a tiny script I used to download my live site database onto my development server when I used a web host that used cPanel, but didn’t give me access to mysqldump over SSH (because they have Jailshell enabled). Read More

Wonkers

Greenhithe

© 2017 Dave James Miller — Powered by WordPress

Theme by Anders NorenUp ↑