Re: [PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sun, 10 Aug 2003 at 15:51, lines prefixed by '>' were originally written by you. > I'm coding a really large web page in PHP. One of the problems I run > into is I'll create a function in file inc.function.something.php and > will need a funct

Re: [PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-14 Thread Miles Thompson
Not quite, but have a look at the function handling functions: http://www.php.net/manual/en/ref.funchand.php particularly http://www.php.net/manual/en/function.function-exists.php May not be what you want, but might get you close. Miles At 10:42 AM 8/10/2003 -0400, Dan Anderson wrote: I'm coding

[PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-11 Thread Dan Anderson
I'm coding a really large web page in PHP. One of the problems I run into is I'll create a function in file inc.function.something.php and it will need a function included in inc.function.somethingelse.php. If I require() somethingelse.php in something.php and it's already been required in main.p

Re: [PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-10 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): > > Is there an equivalent to the C++: > > #ifndef some_header_file_h > #define some_header_file_h > > // insert code that shouldn't be repeated here > > #endif // some_header_file_h > Yes. sort of.. if (! defined('_SOME_HEADER_FILE_H_') ) {