114c114,120 < $t_file_path = str_replace( DIRECTORY_SEPARATOR, '/', __FILE__ ); --- > # with apache use SCRIPT_FILENAME because __FILE__ does resolve symbolic links > if( isset( $_SERVER['SERVER_SOFTWARE'] ) && stristr( $_SERVER['SERVER_SOFTWARE'], 'apache' ) ) { > $t_file_path = str_replace( DIRECTORY_SEPARATOR, '/', $_SERVER['SCRIPT_FILENAME'] ); > } > else { > $t_file_path = str_replace( DIRECTORY_SEPARATOR, '/', __FILE__ ); > } 116c122 < # Extract the unique directory path of this file relative to the server's documunt root --- > # Extract the unique directory path of this file relative to the server's document root 146c152,158 < $g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR; --- > # with apache use SCRIPT_FILENAME because __FILE__ does resolve symbolic links > if( isset( $_SERVER['SERVER_SOFTWARE'] ) && stristr( $_SERVER['SERVER_SOFTWARE'], 'apache' ) ) { > $g_absolute_path = dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR; > } > else { > $g_absolute_path = dirname( __FILE__ ) . DIRECTORY_SEPARATOR; > }