Eaccelorator + Zend + my php coding....

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Deseree
Forum Commoner
Posts: 84
Joined: Mon Feb 13, 2006 11:35 pm

Eaccelorator + Zend + my php coding....

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
Deseree
Forum Commoner
Posts: 84
Joined: Mon Feb 13, 2006 11:35 pm

Post 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!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It is still the same code, just as before, only processed into opcodes.
Post Reply