Using the require() command

From: Date: Thu, 12 Oct 2000 20:54:39 +0000
Subject: Using the require() command
Groups: php.general 
Request: Send a blank email to php-general+get-19887@lists.php.net to get a copy of this message
Does the require() command include the file too. E.X. <? require("vars.txt"); mysql_connect("$mysqlhost", "$mysqluser", '$mysqlpasswd'); mysql_select_db("$dbname"); ?> so i can make a script and have a vars.txt file that looks like this: $mysqlhost="localhost"; $mysqluser="mysql"; $mysqlpasswd="admin"; $dbname="guestbook"; Thanks, Robby Whiteside

« previous php.general (#19887) next »