Re: referencing external functions

From: Date: Tue, 15 Feb 2005 18:37:52 +0000
Subject: Re: referencing external functions
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-38584@lists.php.net to get a copy of this message
> and am trying to use it in this links3.php > > <?php > include('functions.php') or die (mysql_error()); > ?> > > but I keep getting the error message > *Warning*: main(1): failed to open stream: No such file or directory in > *C:\Accounts\dbadream\wwwRoot\links3.php* on line *4* > *Warning*: main(): Failed opening '1' for inclusion > (include_path='.;c:\php4\pear') in > *C:\Accounts\dbadream\wwwRoot\links3.php* on line *4* > > Can anyone explain what is wrong. Both files are in the same directory > and and both have the normal permissions set to access. try the absolute path and try require_once() instead of include(). Also "or die (mysql_error());" is not going to get you anything. That is the text of the error message from previous MySQL operation.

« previous php.db (#38584) next »