Re: [PHP] Invoking functions stored in a separate directory?

2009-08-22 Thread Clancy
On Fri, 21 Aug 2009 15:16:11 +0200, ak...@telkomsa.net (Arno Kuhl) wrote: -Original Message- From: Clancy [mailto:clanc...@cybec.com.au] Sent: 21 August 2009 01:26 PM To: php-general@lists.php.net Subject: [PHP] Invoking functions stored in a separate directory? I am developing an idea

Re: [PHP] Invoking functions stored in a separate directory?

2009-08-22 Thread David Robley
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

Re: [PHP] Invoking functions stored in a separate directory?

2009-08-22 Thread Clancy
On Sat, 22 Aug 2009 20:37:17 +0930, robl...@aapt.net.au (David Robley) wrote: 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

RE: [PHP] Invoking functions stored in a separate directory?

2009-08-21 Thread Arno Kuhl
-Original Message- From: Clancy [mailto:clanc...@cybec.com.au] Sent: 21 August 2009 01:26 PM To: php-general@lists.php.net Subject: [PHP] Invoking functions stored in a separate directory? I am developing an idea for a website engine which can be shared between several different