Re: [PHP-DB] referencing external functions

2005-02-15 Thread Matt M.
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():

RE: [PHP-DB] referencing external functions

2005-02-15 Thread Bastien Koert
the error tells me that the files are not in the same dir...I have run into this one as well and it was always that case. Your usage is off though...What you need to do is to include the functions.php page and then call a particular function..also any error handling should be with the function

Re: [PHP-DB] referencing external functions

2005-02-15 Thread J. Connolly
Thanks Bastian, I did not understand that require and include are not considered arguments. When i removed the parentheses everything was ok. I was also having a problem because my hosting company shut down my database for having too many connections... jzf -- PHP Database Mailing List

Re: [PHP-DB] referencing external functions

2005-02-15 Thread Bastien Koert
the link. bastien From: J. Connolly [EMAIL PROTECTED] To: PHP list php-db@lists.php.net Subject: Re: [PHP-DB] referencing external functions Date: Tue, 15 Feb 2005 14:35:21 -0500 Thanks Bastian, I did not understand that require and include are not considered arguments. When i removed the parentheses