Re: Using the require() command

From: Date: Thu, 12 Oct 2000 21:55:48 +0000
Subject: Re: Using the require() command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19889@lists.php.net to get a copy of this message
Try the manual: http://www.php.net/manual/function.require.php ----- Original Message ----- From: "Robby Whiteside" <robby@thedatasource.net> To: <php-general@lists.php.net> Sent: Thursday, October 12, 2000 1:54 PM Subject: [PHP] Using the require() command 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 (#19889) next »