Where to put the PHP code?

liunx

Guest
Does it ever make sense to put the PHP included code OUTSIDE of the public_html (document root) area of your website? This implies that the PHP 'include' function can get at it but that prying eyes cannot. This would be a good place for database ID and passwords, for instance. Thanks and I <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> your service!!<!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome mdevelle <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />Yes it does, here is a <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=2044&hl=root" target="_blank">post</a> about that very topic that might interest you,<br />look for the posts from TCH-Jack.<!--content-->
 
Top