Krzysztof Socki wrote:
Hello!
Can anyone tell me if it's possible to extent PHP with a function that
includes other PHP file? I know that 'include' is not a function, is it
possible to work it around? I need a function that includes a file
respective to the location of the running script. Maybe I could extend the
parser to use an alias of 'include' with a constant file path? I'd be
grateful for your help. Thanks in advance.
function include_me($path) {
  include $path;
}

should do the trick?


--
Six Offene Systeme GmbH     http://www.six.de/
i.A. Hartmut Holzgraefe
Email: [EMAIL PROTECTED]
Tel.:  +49-711-99091-77


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to