You are here: Re: how to hide PHP from browser? « PHP Programming Language « IT news, forums, messages
Re: how to hide PHP from browser?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация