You could also just run the program manually (e.g. replacing your shortcut to Photoshop with one that launches your PHP script and then opens Photoshop) after writing a script that utlizes an endless loop to scan a directory, determine if any changes were made, upload those changes, sleep for a small amount of time, lather/rinse/repeat.