Accelerating PHP Applications |
 |
2025-03-04 |
 |
 |

34 |
 |
 |
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.