note 11257 added to show_source

From: Date: Tue, 13 Feb 2001 06:41:28 +0000
Subject: note 11257 added to show_source
Groups: php.notes 
Request: Send a blank email to php-notes+get-10977@lists.php.net to get a copy of this message
I recently recieved an email from a person asking how to secure passwords from being shown so I might as well share this info with all. First, remove the passwords from your page source and replace them with varables. Then open a new file and declare the varibles with the password and username for your database. Then use "require("incfile.inc");" to include the passwords. You could use include, but require stops processing if the file is not found and you won't see a bunch of random output and database errors. For extra security, you may want to place the inc file outside of the document root. Hope this helps secure your site. http://www.php.net/manual/en/function.show-source.php

« previous php.notes (#10977) next »