Page 1 of 1

how to hide php code?

Posted: Sat Jul 12, 2003 1:50 pm
by jojo
Hi;
I wonder how to hide the php code from web viewer or from being copied.
I want to have an option to prevent php code being copied , printed or saved from a website.

as I have tested and could not see any php code in source of IE 6 browser, I am not sure if this is same for all the browser around,
and I tought may be there are some program or a script that can be run and bring up the php code eventhough the code is not visible.
I

appreciate your help.

Thanks

Posted: Sat Jul 12, 2003 1:53 pm
by macewan
If I understand you question correctly then you may want to read up on php some. It is executed on the server. It is not like javascript. No one will see your php code.

Posted: Sat Jul 12, 2003 2:05 pm
by jojo
Thanks a lot for your reply,

yes i know that is server side, but the browser read the code and show the page but not the code, so is there any program or script out there which can read the code ad browser does, and then show the code to you instead of viewing it like browser does.

thanks

Posted: Sat Jul 12, 2003 2:12 pm
by macewan
it is executed on the server. the browser is just viewing the 'regular' html that is sent to it.

the php never hits the browser. it is turned in html on the server which then sends it to the browser

Posted: Sat Jul 12, 2003 2:26 pm
by jojo
that explains everything,
thanks a lot

Posted: Sat Jul 12, 2003 2:28 pm
by macewan
=)