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

Facebook Message System – in PHP

So Facebook has been really cool in the way that they have designed and implemented some new paradigms in the electronic communication realm. However, one thing is a problem: they’re too smart. They have hired the best of the best … Continue reading

Posted in PHP | Tagged | 36 Comments

Book Review: Expert PHP 5 Tools

Where was this book 4 years ago? Or even 2 years ago? (Uh – it was published in 4/2010… so… just in the author’s head apparently). Anyway, I digress. I want to tell you about the book Expert PHP 5 … Continue reading

Posted in PHP | Tagged | 2 Comments

When uniqid is too slow in PHP

I just profiled some of my code and found out that the biggest chunk of my processing time was used by uniqid(). I use this to generate form tokens to prevent cross site request forgeries. On one page, I have … Continue reading

Posted in PHP | Tagged | 7 Comments

How to Log PHP Errors like a Pro

The error log can be fun to parse through and figure out what happened. Ok, so if you just read that and agreed, you need to move on. This is not for you. That’s not fun. However, you CAN make … Continue reading

Posted in PHP | Tagged | Leave a comment

Load Facebook Fanbox Faster by Caching it

I wasn’t in favor of the Facebook fanbox on the site I was working on… but that’s what the client wanted – and that is what they get. I added it and moved on. Well, later, I started noticing a … Continue reading

Posted in PHP | Tagged , | 13 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

Bluefish Editor could help you leak your PHP!

The BlueFish editor is a primarily linux based visual editor for various web languages. Visit the site for more… One thing I had noticed about a few projects I was working on was the presence of files named things like: … Continue reading

Posted in IDE and Web Dev Tools, PHP | Tagged , , | Leave a comment

Displaying the Most Popular Youtube Videos with PHP

During one of my random dreams of how to become an internet millionaire, I thought about displaying the top youtube videos on an aesthetically pleasing backdrop. While I’m not feeling that artsie right now, I did code together a quick … Continue reading

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

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

Posted in PHP, web tools | Tagged , | Leave a comment

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