php file loading performance
Hi,
I have php-cgi (compiled with --enable-fastcgi --enable-force-cgi-
redirect --enable-discard-path --with-mysql --with-mysqli --enable-
embedded-mysqli --with-zlib-dir=/usr/lib) being used by FastCGI
(FCGIWrapper) to load scripts. Even with a php accelerator (see
php.ini contents below), the binary itself is being kept running with
FastCGI as expected, but it still re-loads the php file itself with
the open( ) syscall every time the browser requests it. Does the sapi/
cgi php have an option to keep all the php files it's called in its
memory space and never touch the disk or call open( ) again?
in php.ini:
[............]
extension="apc.so"
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
;apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.include_once_override=1
apc.stat=0
[............]
Thx.
--
Blitzen
.
Relevant Pages
- Re: Text file splitter, date/time field
... large text file into which I have copied PHP file after PHP file, ... You appear to want to write code in a language that you do not know. ... Perl's regular expression in the documentation that came with perl. ... (comp.lang.perl.misc) - [UNIX] YaPiG add_comment.php PHP Code Injection
... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... YaPiG is "a simple but powerful web album ... * YaPiG version 0.92b (Latest downloaded files appear to be immune to PHP ... This Proof of Concept creates a php file that echoes a notice. ... (Securiteam) - php code compiles, produces good html output, but crashes when put through browser
... This is a postgresql/PHP running with PHP 5. ... The postgres part works fine, and the html that is generated is OK, but the .php file hangs when I run it through the browser. ... I need some basic debugging tools that I don't have to figure out what is going on. ... (php.general) - Re: How to call different methods in one PHP file?
... > I'm a PHP newbie coming from experience with ASP.NET. ... It isn't good programming style to use one PHP file per HTML page. ... should be based on functionality, ... You should group functions/methods by functionality rather than ... (comp.lang.php) - Re: I need help generating image along with other html
... I can now generate the background image on the same page as my form. ... for the php generating the picture below in hopes that someone can offer ... >>image along with other html. ... >>I obviously need to do more than just set the img src tag to the php file ... (alt.php) |
|