note 92610 deleted from function.require-once by thiago

From: Date: Fri, 31 Jul 2009 13:04:34 +0000
Subject: note 92610 deleted from function.require-once by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158958@lists.php.net to get a copy of this message
Note Submitter: nate at nospam dot com ---- Note if you require a file without opening/closing php tags the contents of that file will get echo'd to the browser. eg database.php $dbh=mysql_connect ("localhost", "username", "password") or die('Cannot connect to the database because: ' . mysql_error()); process.php require_once('/home/account/database.php'); Running process.php in your browser will echo information you probably don't want echo'd. Don't forget the <?php TAGS ?> in the database.php file.

« previous php.notes (#158958) next »