Re: Hiding the source!
| From: | Jeff Gannaway | Date: | Thu, 17 Aug 2000 11:59:15 +0000 |
| Subject: | Re: Hiding the source! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12289@lists.php.net to get a copy of this message | ||
At 11:56 PM 8/17/00 +0800, Ben Heuer wrote:
>What do people usually say to counter these comments? What are the
>tips/tricks to hide code in PHP and CGI? Any kind of encryption/decryption
>at runtime? (Pls forgive me if this sounds stupid! )
Not at all. It's a serious concern especially if part of your code
includes usernames and passwords to access MySQL Databases.
My solution was to create a subdirectory and password protect it (the whole
.htaccess thing)
Then I would make PHP files that contained truly sensitive info and save
them in that directory so they would not be accessable by web browsers
unless they had that directory's password/username.
You can, however, include those files in publically-available PHP scripts.
For example, say your index.php file would access a database for info. I
would have a chunk of the code put in a file called sql.php and save it in
the secured directory.
If you need more info, e-mail me.
Good luck,
Jeff Gannaway
____________________________________________________________________________
____
Find the right art print for your home.
* Search by artist, color, art style and subject.
* Preview the art prints against your wall color.
PopStreet.com is your avenue to art.
http://www.popstreet.com
____________________________________________________________________________
____