Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Monthly Archives: September 2008

PHP SPL autoload: 3 simple rules you must follow

While working on a larger site that I may need to use many external libraries, I realized I need to come up with a better __autoload() function (for example, I think it was DOMPDF that had its own autoload function … Continue reading

Posted in PHP | Tagged | Leave a comment

CSS incompatibility finder

This is more of a proof of concept than anything else – as most of my scripts are But, lets say you have some files that have css in them, either external stylesheets, internal one with style tags or even … Continue reading

Posted in CSS, PHP | Tagged , | Leave a comment

Anti Spam Solution for small / medium business?

One of the biggest internal battles I have is whether to host my email locally on my 16mb/2mb network, source it out to the web host, or use a specialized webmail company. I like that feeling of control, the fact … Continue reading

Posted in web tools | Tagged | 1 Comment

SVN Pre-commit duty: Lint your PHP

We’ve all been there before, committing code – and then realizing that it was broken (hrm – our unit test didn’t catch it? or… “what unit test?” if you’re in another environment). Well, there is a solution. Batch File Fun! … Continue reading

Posted in PHP, svn | Tagged , | 5 Comments

Don't focus me, bro!

I hate filling out login forms to discover that half of my password is in the username box. Lets talk about why – and then a solution. Why? Slow Loading Pages Slow loading pages, or sites with a lot of … Continue reading

Posted in javascript, Misc Web Design | Tagged , | 2 Comments

To clear up that confusion about public and public static access in PHP

Apparently, a few programmers I know have been getting confused about access of public, public static variables in PHP classes. I’ve written this example code with the following comments to explain what will work – and what won’t. ?View Code … Continue reading

Posted in PHP | Tagged | 3 Comments

dtemplate: dynamic template system for static designed files

One of the biggest time wasters I deal with is parsing out static web designs given to me by designers. They don’t know programming, so they design it with static HTML in mind. Even if you’re using a tool like … Continue reading

Posted in Misc Web Design, open source, PHP | Tagged , , | Leave a comment

Automatic Backup with SVN on Windows

A while ago, I decided that I needed to have a better backup solution for my file server. After doing some research on various systems, I let my inner programmer take over – in addition to my desire to NEVER … Continue reading

Posted in scripting, svn, windows | Tagged , , | 9 Comments

Why your company needs a System Architect/Analyst

In this post, I’m going to cover what a System Architect/Analyst (SA from now on) is and why you need one. A System Architect/Analyst is… A top level programmer with a lot of experience. Experience is king here. No matter … Continue reading

Posted in Misc Web Design, programming | Tagged , | 1 Comment

heredoc – time for dead-dead or happy-smile time?

PHP’s heredoc – good or bad? All silly titles aside, lets check out some points. For those who are not aware, heredoc is the format of creating a large string in PHP that does not need quotation marks of any … Continue reading

Posted in PHP | Tagged | 3 Comments