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.
Eaccelorator + Zend + my php coding....
Moderator: General Moderators
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.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
ok fantastic, it will execute that php code from memory, but variables that have changed BEFORE the include will be taken into account correct?Weirdan wrote: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.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
Thanks!