How to scan and upload php?

Hi,
I just want to know if how to scan and upload PHP? There are some codes that needs to be scanned and uploaded but I don’t know how for much security purposes as well. I know there is a way to do this stuff, I need a step by step procedure on how to perform this. Can you help me guys?
