working Visa

I am a Filipino, presently staying in china as a tourist. i was once a teacher in a certain  company and after earning and saving money i just held a tourist visa because i stopped working and just spent my time going some places in China. now it so happened that i found a new  boss who hired me as a Foreign teacher but he can't provide  working visa for me and advised me to get it in Hongkong. is it possible for me to get a working visa there? if YES, please tell me all the necessary steps/things that i should do to get it.. and... how long would it take if ever?? and how long should i go there before the expiration date of my tourist visa?   thanks a lot in advance..