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 function included in inc.function.somethingelse.php.
If I
> require() somethingelse.php in something.php and it's already been
> required in main.php, I get an error about the function being
defined
> twice.

You can use the require_once() and include_once() functions
instead of require() and include() to avoid this happening.

All the best,

David.

--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Free PHP error handling script: www.phpmachine.com/error-handler/

          Professional Web Development by David Nicholson
                    http://www.djnicholson.com/

    QuizSender.com - How well do your friends actually know you?
                     http://www.quizsender.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to