FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » require*/include*: compile-time or runtime?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: require*/include*: compile-time or runtime? [message #170920 is a reply to message #170919] Wed, 08 December 2010 15:46 Go to previous messageGo to previous message
Willem Bogaerts is currently offline  Willem Bogaerts
Messages: 8
Registered: September 2010
Karma:
Junior Member
On 08/12/10 16:25, A.Reader wrote:
> It's not documented, that I can find, whether these includes are
> performed at compile-time or jit/run-time. I can write some code to
> work it out, but if someone's already done that it would save
> wheel-reinvention.
>
> Thanks upfront.

As you can return a value from an include and can "require" a file from
a computed location, I'd say this is done at runtime.

You can do things like:

require_once(dirname(__FILE__) .
'/../hashingcontrolfiller/hashingcontrolfiller.php');

Things that are done at compile time usually do not tolerate such
expressions.

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: drupal php google analytics
Next Topic: Adsense approval Trick
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 20:13:44 GMT 2024

Total time taken to generate the page: 0.04134 seconds