Re: include() and require() problem

From: Date: Fri, 19 Apr 2002 20:13:13 +0000
Subject: Re: include() and require() problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93753@lists.php.net to get a copy of this message
I'm also having a problem with including file into and include file. my script reads. ( (strpos($PHP_SELF,"admin/")) ? include('../includes/mysql.inc.php') : include('includes/mysql.inc.php') ); @mysql_pconnect($mysqlDBhost,$mysqlDBuser,$mysqlDBpass) or die ("Database access error. Please contact the site webmaster at $webmasterEmail."); @mysql_select_db($mysqlDBdatabase) or die ("Couldn't Select Database. Please contact the site webmaster at $webmasterEmail."); my server is running php4.1.2 and there is not problem i am also running php4.1.2 but reads back a problem. this one.... Warning: Failed opening 'includes/mysql.inc.php' for inclusion (include_path='c:\php4\pear') in D:\Apache\htdocs\auction4sale\includes\config.inc.php on line 47 Database access error. Please contact the site webmaster at . any suggestions ?

« previous php.general (#93753) next »