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!

Tag Archives: PHP

Javascript error handler

A while ago, I saw a website that provided a javascript error reporting service. You implemented some code and then they would send you reports on javascript errors on your site. I thought, this can’t be that hard. So I … Continue reading

Posted in javascript, PHP | Tagged , | 5 Comments

Scanning for Unfiltered Content Automatically with PHP

A friend of mine posed a question: Do you know of any good PHP based vulnerability scanners? I told him I did not (add any in the comments, if you know! ) – but it wouldn’t be that hard to … Continue reading

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

Elgg Plugin: Friend AutoComplete Box Replaces Select Box

One of the most irritating things to me about the Elgg messaging plugin is the requirement to choose my friends from the select box. This SHOULD be generated using the input/pulldown view in Elgg. Unfortunately, they are doing it by … Continue reading

Posted in elgg, PHP | Tagged , | 2 Comments

Using PHP to find distance between Zip Codes

Today marked the second time I had to write this code from scratch. To save my self time – and hopefully you too! – I’m going to post what I’ve developed.

Posted in PHP | Tagged | 3 Comments

Elgg Development Tools – Elgg Plugin

After working some with the open source Community building application Elgg, I found some settings to be irritating. I had to keep hacking my plugins to get these settings activated the way I wanted. Also, I really wanted to put … Continue reading

Posted in elgg, open source, PHP | Tagged , , | Leave a comment

When PHP's dirname() saved the day

Now, I won’t bore you with the actual details of how I came across this – lets just skip to the explanation and example: First, even when it makes ‘sense’, you should not be using relative paths in your command … Continue reading

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

My Progression through Forgot Passwords

I thought I’d take some time to look at the 3 main ways that I’ve handled forgotten passwords on my websites, why I did them that way, and if there was anything wrong. Disclaimer: there is a lot of bad … Continue reading

Posted in PHP, programming, security | Tagged , , | Leave a comment

Disable md5 now – or you will die

I remember a while ago hearing about a few theoretical collisions of the md5 algorithm, but I thought nothing of them. Now, as more information emerges, Microsoft is issuing advisories, and people are proving more and more collisions with example … Continue reading

Posted in PHP, security | Tagged , | 1 Comment

Password Complexity Class

After many times of coding relatively the same thing, it becomes prudent to have a standard library for certain sets of processes. Of course – that is why there are things like frameworks! At any rate, one of the biggest … Continue reading

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

Please Use Public Accessors in your Object Oriented Programming

I really hate to see people accessing and designing objects with public attributes. So many times I’ve seen this backfire. Lets take a few examples and see why this matters:

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