My Blog
contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!
Category Archives: PHP
Moving files from one webserver to another using PHP script
A while back, a colleague mentioned to me that he was moving his site from one webserver to another. He hated having to FTP everything down, then reupload it. Invariably, we’ve all done this – and forgot to apply proper … Continue reading
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
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
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
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.
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
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
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
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
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
