Hi,
Let me write a demo first then, I will post it here after I tested it a couple of times.. This is the same method I was using, because I was pretty lazy using the ftp. So, all my php files are generated from my website. At least, I can edit my php files without FTP applications..just Internet connection and I am good to go.
Hold on, please... thanks for the PM... :).