Previous Thread
Next Thread
Print Thread
Rating: 10
Joined: Oct 2002
Posts: 24
Joined: Oct 2002
Posts: 24
I just wanted to take this opportunity to recommend an awesome program we've been using on our server for some time now. eAccelerator is a free, GPL'd program which increases the performance of PHP scripts by automatically caching them in a compiled state so that the overhead of compiling is almost completely eliminated. It also has a simple and powerful API for caching script output. For instance, you can cache an entire page for 30 seconds by adding this to the top of the script:


You can also store variables in shared memory. This is really useful, for example to cache the results of a database query for 30 seconds:

$results = eaccelerator_get('results');<br />if (!$results){<br />	$table = mysql_query("SELECT * FROM sometable");<br />	while ($row = mysql_fetch_assoc($table)) {<br />   		$results[] = $row;<br />	}<br />	$eaccelerator_put('results', $results, 30);<br />}

On our site eAccelerator has made some features possible which would otherwise have been too resource intensive. It's been rock solid and the developers are working hard to ensure compatibility with PHP 5. A comparable product from Zend costs $1,000+ so don't forget to donate if you find it useful!

Hope this helps,


Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Very interesting. Thanks!

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
Visit us on Facebook
Member Spotlight
Posts: 69
Joined: January 2001
Forum Statistics
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
isaac 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2023 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)