Hello to every body who visit this thread
I don't see how you can hide the source that gets sent to the client browser. Code within the PHP tags would be processed at the server end anyway. So data such as database login wouldn't be sent to the client machine anyway.
I you are writing an application where you want to hide all your code you can use something like Zend or Ioncube.
There's one way to do it, there's one program called HTML Encryptor, you can google search to that. I used to use it a while back.. but it seems useless and crappy because it changed several things... XD a.k.a it's not a reliable software.. :) but pretty nice, they encrypted everything..