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: July 2007

Demonstrating Password Manager Almost Vulnerability in FireFox

The “security guys” have been talking about the problems with FireFox’s password manager and I got curious. It turns out that javascript can access saved passwords in your password manager simply by creating a login form and capturing the input … Continue reading

Posted in javascript, security | Tagged , | 1 Comment

Is it better to write your 'for' loops backwards in PHP?

After listening to a javascript internals optimization talk, I wanted to see how these concepts could relate to PHP. The biggest thing that stuck out to me was the order of the for loops in javascript. According to the talk, … Continue reading

Posted in PHP | Tagged , | Leave a comment

The Perils of the AT in PHP

A lot of weird things have been happening ever since we introduced a new error handler at (“the triangle”). First of all, it took down our whole site for a good portion of time (oops!), then it created a large … Continue reading

Posted in PHP | Tagged , | 3 Comments

Force Log Messages using Tortoise SVN

Everyone knows that standard SVN has its list of 6 or 8 standard hooks – but what if you’re 1) lazy, 2) busy, 3) don’t have access to the SVN server? Using one of the popular win32 shell integrated svn … Continue reading

Posted in svn, windows | Tagged , | Leave a comment

How to use PHP to generate downloadable content

I was looking at some code I had written about 3 years ago – how sad! I was creating a PDF of my resume using PHP to grab my qualifications out of a database. Unfortunately, I never researched into the … Continue reading

Posted in PHP | Tagged | Leave a comment

Symbolic Linking in Windows?

Be careful! Those of you who are trying to emulate a symbolic link in windows have probably come across the Windows Resource Kit tool linkd.exe. This creates junction points on the file system. However, before you have to find out … Continue reading

Posted in windows | Tagged | Leave a comment

Master the 'Run As' option in Eclipse PDT with PHP

Most of my development in Eclipse PDT with the results tested outside of it – using firefox. PDT has a few options in the Run… menu: PHP Script PHP Webpage Web Browser So, lets take some time to look into … Continue reading

Posted in Eclipse PDT, IDE and Web Dev Tools, PHP | Tagged , , | 6 Comments

When is a PHP array not an array?

Arrays, return variables, expressions, OH MY! I recently learned a lesson about array functions in PHP not returning what I thought they would. I had a function that returned the value of array_shift()… and then used it in another function. … Continue reading

Posted in PHP | Tagged | Leave a comment

A reminder about triggering errors not in the USER level

I had a function in some of my code that I wanted to trigger a notice error on certain occasions. Unfortunately, it kept halting my script with a Warning instead. Unfortunately, the error handler at that particular block of code … Continue reading

Posted in PHP | Tagged | Leave a comment

PHP developer's shortcut for optimizing mysql

PHP developers, raise your hand if you run an explain on each MySQL statement you write and use in your apps! Anyone? Ok… 1… 2… thats it? Yah, I tend to forget that too, but luckily PHP allows us to … Continue reading

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