Re: [PHP] Re: Include and require

2006-08-14 Thread Chris
Adam Zey wrote: Dave Goodchild wrote: I use a config file too. That was a sanity check. The file extract looked like this: $months = array(1 => 'January', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6=> 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 =>

[PHP] Re: Include and require

2006-08-14 Thread Adam Zey
Dave Goodchild wrote: I use a config file too. That was a sanity check. The file extract looked like this: $months = array(1 => 'January', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6=> 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 => 'October', 11 =>

[PHP] Re: Include and require

2006-08-14 Thread Adam Zey
Dave Goodchild wrote: Hi all - I have several require_once statements in my web app to load in small function libraries. A common one bundles a variety of functions to handle date math and map month numbers to month names. I originally defined an array in that file plus a bunch of functions but w

[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