[PHP] Re: include() and require() problem

2002-04-19 Thread Vins
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 contac

[PHP] Re: include() and require() problem

2002-04-19 Thread Michael Virnstein
be sure that the path to the include file is relative to the script that was requested by the user. that's important if you include include-files into included files. you then have to make sure that the path to your include-file in the include-file is relative to the file that included the file, i