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

Home » Imported messages » comp.lang.php » How expensive is glob'ing a dir and including all the files?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How expensive is glob'ing a dir and including all the files? [message #179164 is a reply to message #179161] Sun, 16 September 2012 21:46 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/16/2012 11:32 AM, Anders Wegge Keller wrote:
> "Peter H. Coffin" <hellsop(at)ninehells(dot)com> writes:
>
>> "Someone" could be another developer working on the same project of
>> even yourself comeing back to the code after ignoring it for a few
>> years. An awful lot of code looks completely foreign with three
>> years on it, even if one was completely familier with it back then.
>
> In that case, you are equally fscked, using
> require('somemodule.php'), when three years down the road, you add a
> module with the same name elsewhere in the search path.
>

That's because you don't use a search path. You give the location of
the file you're including (relative or absolute).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php and PDO Error HTTP 500
Next Topic: PHP Update
Goto Forum:
  

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

Current Time: Thu Nov 28 10:37:31 GMT 2024

Total time taken to generate the page: 0.03085 seconds