PHP - fopen example

Syntax
    
        fopen(pathToFile, mode);
    
Example
    
        $handle = fopen('/path/to/file.txt', 'r');
        while (!feof($file)) {
            $line = fgets($file);
            echo $line;
        }
        fclose($file);