Can someone tell me why this is occuring:
.......
function _createLinks( $file )
{
$fHandle = fopen( 'links\'.$file, "r" );
/ If the file could not be opened generate an error message /
if( !$fHandle ):
$_errorMess = "Could Not Opened the link file ".$file;
/** Write error to the given error log **/
error_log( $_errorMess, 3, LINK_ERROR_FILE );
/** Inform the user of the error **/
$error = new errorReporter();
$error->raiseError( 208, $file );
endif;
while( !feof( $fHandle ) ):
/** Read the link name **/
$name = fgets( $fHandle, 4096 );
/** Read the link url **/
$url = fgets( $fHandle, 4096 );
/** Check for an errors that may have occured while reading the file **/
if( !$name || !$url ):
$_errorMess = "Could Not Read the link file $file, Location: Navigation.class.php _createLinks()";
/** Write error to the given error log **/
error_log( $_errorMess, 3, LINK_ERROR_FILE );
/** Inform the user of the error **/
$error = new errorReporter();
$error->raiseError( 206, $file );
endif;
endwhile;
}
}//End Class Navigation
?>
// IT SEEMS TO THINK THE ERROR IS HERE !!!