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: programming

How to Quickly Mask a Credit Card Number

So, often I have to show a masked credit card on the screen. However, I really want to go the extra mile and show the user a secure, fully masked credit card number that still reflects their original card. For … Continue reading

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

Service Class Methodology

There has been a lot of discussion on forums and throughout the object oriented PHP programming community about service classes. This is just intensified by the Zend Framework model of development coupled with the changes in their design/architecture and vocal … Continue reading

Posted in programming, zend framework | Tagged , | 2 Comments

Why IP Authorization No Longer Works on Web Apps

The last time someone brought up authorizing certain actions by IP address – or I should say, limiting the amount of actions that can happen by one IP address. I brushed that off without a second thought. It didn’t occur … Continue reading

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

To WWW or not to WWW

I run into this question a lot. Should my website have www in the domain name. Should I be going to aaronsaray.com or www.aaronsaray.com?? That is to say, which should be the default home page domain? Let’s discuss… Take care … Continue reading

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

Excel won't handle UTF-8 in CSV? Force a different encoding in PHP

When generating a CSV file with PHP in the UTF-8 encoding, Microsoft Excel freaks out. It just doesn’t show the proper encoding. Thank you Microsoft! However, I did find a way to handle this encoding and make it compatible for … Continue reading

Posted in PHP, programming | Tagged , | 3 Comments

Object Cache Class in PHP

While I’m infinitely happy that all uses of a class in PHP now are references, that’s just not good enough. Sometimes I want to use my newly created object in many different methods. I have two options. First, I could … Continue reading

Posted in PHP, programming | Tagged , | 2 Comments

chaining methods in PHP

I rarely find myself needing to chain methods in PHP – but its not an altogether bad idea. The only caveat that is necessary is that your code must be written in such a way that a method can fail, … Continue reading

Posted in PHP, programming | Tagged , | 1 Comment

Email to SMS/TXT address list

The website http://www.emailtextmessages.com/ keeps a database of most of the email addresses that correlate directly to a txt for mobile phones. However, their version is in HTML – and I see no feed. I’ve compiled the list into a .csv … Continue reading

Posted in programming | Tagged | Leave a comment

Multi-Version Programming to Successfully Leverage Overseas Programming

Today, I read through the paper titled ‘An Experimental Evaluation of the Assumption of Independence in Multi-Version Programming’ (Find it here). The basic concept is that in N programs written by N different programmers, they will have N*N bugs and … Continue reading

Posted in business, programming | 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