Improving the Speed of PHP Web Scripts

Bruno shows some causes of slow web scripts and gives possible solutions.
Conclusion

This article shows you how PHP cache mechanisms work and provides a do-it-yourself solution. If you test the examples and like them, please feel free to implement your own solutions. However, there other ways to improve performance like function caching, or PHP script precompilation. Some off-the-shelf solutions can offer you these functionalities. You should always look for the best solution for your own needs and do your own testing.

email: bpedro@eth.pt

Bruno Pedro, cofounder and manager of ethernet lda., is a systems engineer with ten years' experience in database-related applications. He was an early adopter of Linux and has been using open-source technology since then. Since 1995 he has been developing applications for the Internet.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

wrong script

Anonymous's picture

missing header.php you mention all the functinality of your header.php yet you havent shown the code :(

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix