Page 1 of 1

Eaccelorator + Zend + my php coding....

Posted: Sat Jul 08, 2006 5:43 pm
by Deseree
Hi everyone....

I am told eacceolorator will help my server's load. I have cpanel + zend already installed.

my php scripting is ALL over the server, 100 % .php files

my MAIN concern is something rather important...

/home/user/public_html/random_image.inc
/home/user/public_html/random_famous_quote.inc

both are 100% php coded scripts, and are included ALL over the server.

include("/home/user/public_html/random_image.inc")

like that. My concern, is that if I install php eaccelorator and it caches php, what will happen to my script? Will it STILL execute random pictures ( based on whatever preceeds it's include call, 250 sites, I have say

$site=1;
include("/home/user/public_html/random_image.inc")


) on all 250 sites, will it still work properly, or will it be like "static"....

Thanks in advance.

Posted: Sat Jul 08, 2006 6:08 pm
by Weirdan
My concern, is that if I install php eaccelorator and it caches php, what will happen to my script? Will it STILL execute random pictures ( based on whatever preceeds it's include call, 250 sites, I have say
It will still display random pictures if that's what you have asked. Eaccellerator is an opcode cache, it compiles your script to opcodes and stores them into the shared memory (or disk, if it doesn't fit). So on the next request the php interpreter doesn't need to re-read and re-compile your script. Instead it just executes it from the memory.

Posted: Sat Jul 08, 2006 8:29 pm
by Deseree
Weirdan wrote:
My concern, is that if I install php eaccelorator and it caches php, what will happen to my script? Will it STILL execute random pictures ( based on whatever preceeds it's include call, 250 sites, I have say
It will still display random pictures if that's what you have asked. Eaccellerator is an opcode cache, it compiles your script to opcodes and stores them into the shared memory (or disk, if it doesn't fit). So on the next request the php interpreter doesn't need to re-read and re-compile your script. Instead it just executes it from the memory.
ok fantastic, it will execute that php code from memory, but variables that have changed BEFORE the include will be taken into account correct?

Thanks!

Posted: Sat Jul 08, 2006 8:38 pm
by feyd
It is still the same code, just as before, only processed into opcodes.