note 92610 added to function.require-once

From: Date: Fri, 31 Jul 2009 10:23:26 +0000
Subject: note 92610 added to function.require-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-158945@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 99.195.208.234 ---- Manual Page -- http://www.php.net/manual/en/function.require-once.php Edit -- https://master.php.net/note/edit/92610 Del: integrated -- https://master.php.net/note/delete/92610/integrated Del: useless -- https://master.php.net/note/delete/92610/useless Del: bad code -- https://master.php.net/note/delete/92610/bad+code Del: spam -- https://master.php.net/note/delete/92610/spam Del: non-english -- https://master.php.net/note/delete/92610/non-english Del: in docs -- https://master.php.net/note/delete/92610/in+docs Del: other reasons-- https://master.php.net/note/delete/92610 Reject -- https://master.php.net/note/reject/92610 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158945) next »