Re: Re: PHP source code

From: Date: Fri, 20 Sep 2002 13:36:57 +0000
Subject: Re: Re: PHP source code
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-117015@lists.php.net to get a copy of this message
Michael Geier schrieb: > PHP Source code is only available on the server, and will never be shown to > the client (unless you create a tool to allow them to see the source; > see show_source() ); > > And you can always put your authentication data (username/passwords) in an > external include() file > > auth.inc: > <? > $username = "foo"; > $password = "bar"; > ?> > > page.php: > <? > include ('[secure directory outside of web tree]/auth.inc'); > mysql_connect("dbname",$username,$password); > ?> > > of course, if you are on a shared-host web server (multiple clients on the > same server), you are only as secure as the weakest idiot that > configures/administrates the server, IMHO. Won't the server ask for authorization if the included PHP script is in an directory accessible with .htaccess-Authorization? Oliver

« previous php.general (#117015) next »