Re: Invoking functions stored in a separate directory?
| From: | David Robley | Date: | Sat, 22 Aug 2009 11:07:17 +0000 |
| Subject: | Re: Invoking functions stored in a separate directory? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297075@lists.php.net to get a copy of this message | ||
Clancy wrote:
> $ok = include (HOST_PATH.'/Halla.php');
Because you are assigning the result of the include to a variable. Try
include (HOST_PATH.'/Halla.php');
and it will work as you expect. And similarly for
define ('HOST_PATH','../Engine');
Cheers
--
David Robley
Dynamic linking error: Your mistake is now everywhere.
Today is Prickle-Prickle, the 15th day of Bureaucracy in the YOLD 3175.