[PHP] Re: Including files on NFS mount slow with APC enabled

2010-08-18 Thread Mark Hunting
Bug reported, see http://pecl.php.net/bugs/bug.php?id=18154 On 08/17/2010 01:13 PM, Colin Guthrie wrote: I don't know the internals of APC but that smells like a bug to me. Can you post the bug number here if you report one? Cheers Col -- PHP General Mailing List

[PHP] Re: Including files on NFS mount slow with APC enabled

2010-08-17 Thread Colin Guthrie
'Twas brillig, and Mark Hunting at 17/08/10 09:08 did gyre and gimble: I now notice that when I replace include_once with include the open() call disappears. That's very nice, but why does include_once need to open the file, even when apc.include_once_override is enabled? Is this a bug? I

[PHP] Re: Including files within a class definition

2004-07-05 Thread Jason Barnett
include (extended_methods_stuff.php); } I know that I can probably extend this class to add the extra functionality however the other generated classes rely on the name of this class so I cannot just extend this class and it's name cannot change. Is there any way to have an include prior to the

[PHP] Re: Including files within a class definition

2004-07-05 Thread Jason Barnett
I really ought to check my code before posting... but you get the idea :) ?php class generatedFoo { public function __autoload($class) { include /path/to/class/$class.php; } // other stuff } ? http://www.php.net/zend-engine-2.php -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: including files from different sub directories

2003-10-24 Thread Rob Adams
Allex [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, What's the syntax for including/requiring files located in directories different than the root directory? Especially files from different sub directories under the root? Going down (classes/globals.php) is ok, but going

[PHP] Re: Including Files

2002-04-03 Thread Maxim Maletsky
try this: if(!@include('file.php')) { header(HTTP/1.0 404 Not Found); } change header() into whatever you want to include at it's place. Careful with this though, make sure that the files script is trying to include do never get below a certain directory. Otherwise I can dispay

[PHP] Re: Including files variables ...

2002-01-02 Thread Emile Bosch
what everyone is trying to say is that it goes automatically.. ie . test.php -- $blah=10; include whatever.php; whatever.php - echo The value of blah is: {$blah}; It just keeps the variable since it's global.. When ur using a function. It