mirror of
https://github.com/php/presentations.git
synced 2026-04-23 23:38:08 +02:00
20 lines
453 B
XML
20 lines
453 B
XML
<slide title="File IO Cont.">
|
|
|
|
<blurb fontsize="4em">
|
|
Always use full path file path when opening files, to avoid expensive normalization of the file's
|
|
path.
|
|
</blurb>
|
|
|
|
<example fontsize="4em"><![CDATA[<?php
|
|
include "/path/to/file.php";
|
|
// or
|
|
include "./file.php";
|
|
?>]]></example>
|
|
|
|
<blurb fontsize="4em">
|
|
This is very important even if you use opcode cache, since the paths of includes and normal files will
|
|
still need to be resolved.
|
|
</blurb>
|
|
|
|
</slide>
|