|
Posted by seaside on 12/23/06 01:05
Chuck schrieb:
> Hi,
>
> I'm using Apache, and I created a .php page and viewed it
> in Firefox, and discovered that all of the <? ?> content
> was visible using View Source.
>
> How do I hide that PHP code from users?
>
> That code necessarily has PHP commands for acessing
> a database and so on... sensitive stuff.
Install Apache's PHP module. Depending on your linux distribution, you
might probably configure certain stuff. In case you use SuSE,
everything should be automatic.
Once PHP is installed, Apache hands over each PHP file to the PHP
processors, which in turn computes results. If PHP isn't installed,
Apache handles PHP files as any other file - and thus passed it along
to the browser as is.
Navigation:
[Reply to this message]
|