how to hide php code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jojo
Forum Newbie
Posts: 9
Joined: Wed Sep 11, 2002 2:50 am
Location: Canada

how to hide php code?

Post 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
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post 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.
jojo
Forum Newbie
Posts: 9
Joined: Wed Sep 11, 2002 2:50 am
Location: Canada

Post 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
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post 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
jojo
Forum Newbie
Posts: 9
Joined: Wed Sep 11, 2002 2:50 am
Location: Canada

Post by jojo »

that explains everything,
thanks a lot
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post by macewan »

=)
Post Reply