Apparently, the script didn't like me changing the CHMOD back to 644 during each iteration through the loop.
Got it working now.
Massive picture resizing loop
Moderator: General Moderators
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.