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 Geoff Berrow on 12/23/06 07:44

Message-ID: <1166835153.013937.264740@79g2000cws.googlegroups.com> from
Chuck contained the following:

>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.

Don't worry. If you can see the code you won't be accessing anything.
Once you get PHP working you won't see it. However, it's a good idea to
but really sensitive stuff (db username and password etc) above the web
root, just in case PHP accidentally gets turned off.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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