View Single Post
  #49 (permalink)  
Old 11-08-2007, 04:27 AM
Gopisoft Gopisoft is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 117
Gopisoft is on a distinguished road
Default Re: PHP Optimization Tips

Hi,

Tips of Tuning PHP Including / File Accessing

Whenever opening files or including scripts into the main script try to specify a full path or at least an easily resolvable partial path.

Inefficient Approach:
PHP Code:
<?php include "file.php"?>
Performance Friendly Approach:
PHP Code:
<?php
include "/path/to/file.php";
// or
include "./file.php";
?>
Thanks,
R.Gopi.
Reply With Quote