Performance Tuning PHP |
|
2024-11-24 |
|
|
32 |
|
|
Always use full path file path when opening files, to avoid expensive normalization of the file's
path.
<?php
include "/path/to/file.php";
// or
include "./file.php";
?>
This is very important even if you use opcode cache, since the paths of includes and normal files will
still need to be resolved.