Re: [PHP] Includes confusion

2003-04-04 Thread Ernest E Vogelsinger
At 22:24 04.04.2003, Mike Tuller said: [snip] >fine except inside functions. So if I have the following: > >include "/Library/WebServer/includes/database_connection.inc"; > >function list_search_results() >{ > // my code that lists search results >} > >

RE: [PHP] Includes confusion

2003-04-04 Thread Jennifer Goodie
DEFINE instead of just instantiating variables. Constants have global scope. > -Original Message- > From: Mike Tuller [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 12:25 PM > To: php mailing list list > Subject: [PHP] Includes confusion > > > I can

[PHP] Includes confusion

2003-04-04 Thread Mike Tuller
I can't figure this out. I have a line where I include a file include "/Library/WebServer/includes/database_connection.inc"; I want to have this declared in one location, so that I don't have to change multiple lines if I ever move the application, everything works fine except inside functions.