|
Posted by Manish on 12/26/06 04:13
In php.ini file, set
short_open_tag = Off
;--------------------------------------------------------
; Allow the <? tag. Otherwise, only <?php and <script> tags are
recognized.
; NOTE: Using short tags should be avoided when developing applications
or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable
code,
; be sure not to use short tags.
short_open_tag = Off
;--------------------------------------------------------
But using <?php will be better.
Using <?php echo ... instead of <?= is better.
as in some servers short_open_tag may be Off and <?, <?= will not work
there.
Chuck wrote:
> 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.
>
> Thanks.
Navigation:
[Reply to this message]
|