Home »
Imported messages »
comp.lang.php »
empty __FILE__ in quercus
Re: empty __FILE__ in quercus [message #169678 is a reply to message #169672] |
Wed, 22 September 2010 15:47 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 22/09/2010 14:45, Thorsten Kiefer escribió/wrote:
> I use quercus through the java scripting api.
> My problem is that I cannot set the __FILE__ constant.
> I tried to set it in the bindings and in the ScriptContext.
> Neither works.
> Is there a way to tell quercus the file path throught the scripting api ?
I've never heard about Quercus but according to Google it appears to be
a PHP interpreter written in Java.
Whey you say "set", is it a typo or do you really mean so?
In the original PHP specification, you cannot modify constants after
they've been defined. And __FILE__ is a magic constant: it's not really
"constant" (its value changes depending on the file where it's read) but
it's already set for you by PHP.
If you actually meant "get", then it's an entirely different issue I
have no clue about, sorry.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|
Goto Forum:
Current Time: Tue Nov 26 22:39:55 GMT 2024
Total time taken to generate the page: 0.04660 seconds