[PHP] erratic results from ftp_rawlist

2010-08-16 Thread clancy_1
I had a procedure for listing the files on a remote directory recursively using FTP, using the code below. I thought it was working, but when I tried to use it yesterday I found it listed every second directory, and returned false for the others. I then tried replacing line A with line B (shown

Re: [PHP] login to protected directory by php

2010-08-16 Thread Ashley Sheridan
On Mon, 2010-08-16 at 09:27 +0530, kranthi wrote: > i would configure apache to let php interpreter handle all kinds of > extensions ( http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addhandler > ) > > even then u'll have go through all the steps pointed out by Ash. > the only advantage of thi

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

2010-08-16 Thread Mark Hunting
I am struggling with the performance of some websites that use a lot of includes (using include_once). The files are on a NFS mount (NFSv4), and I use APC to speed things up. APC has enough memory, and I see all included files are in the APC cache. apc.include_once_override is enabled. This is on a

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

2010-08-16 Thread Jonathan Tapicer
Hi, APC checks by default if every included file was modified doing a stat call. You can disable it, setting apc.stat to 0 (http://www.php.net/manual/en/apc.configuration.php#ini.apc.stat). Try if that improves the performance. Of course, you should manually delete the APC opcode cache every time

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

2010-08-16 Thread Mark Hunting
Thanks for your answer. I have tested this option before, and it indeed disables the stat() operation. However, it doesn't disable the open() operation, which is about 10x slower than the stat() call (see my example trace). On 08/16/2010 07:21 PM, Jonathan Tapicer wrote: > Hi, > > APC checks by de