_ >   1 1 <?php
  2 2 if(!strlen($pathtoroot))
  3 3 {
< >   4     $path=dirname(realpath($_SERVER['SCRIPT_FILENAME']));
    4   $path=dirname(realpath(__FILE__));
< _   5 5   if(strlen($path))
  6 6   {
  7 7     /* determine the OS type for path parsing */