[PHP-DEV] DOCUMENT_ROOT with Zend API
Hello! I'm writing a new function to PHP using the Zend API. I need to know the DOCUMENT_ROOT value of the running script. I've read through the lxr.php.net and I still have no idea how to do that. Is it possible with the Zend API, at all? Does anybody know the way? Krzysiek Socki [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Odp: 'include' function
Finally I've managed to modify the parser. It was a good lesson. KS. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Odp: [PHP-DEV] 'include' function
function ala() { include file.php; } I want neither to explicitly include any file nor to define any function in my script. My point is to give access to the source to the user but to hide the script's real functionality. Do you have any experience with modifying PHP parser, specifically adding new language constructs? Thanks. KS. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] 'include' function
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. Krzysiek Socki [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Odp: [PHP-DEV] 'include' function
U¿ytkownik Hartmut Holzgraefe [EMAIL PROTECTED] w wiadomooci do grup dyskusyjnych napisa³:[EMAIL PROTECTED] 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? I need a function that includes a file, but doesn't show that something is included. I would like to be able to do something like this: ala(); // include some file - the name of the included file is constant respective to the script location ela(); ola(); // use functions defined at the included file Can you help? KS. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php