How can include be used to open a PHP file without using fopen and still maintain a locked reading access to the file?

When using the `include` function in PHP to open a file, you can't directly control the file access mode like you can with `fopen`. However, you can use the `file_get_contents` function to read the file contents and then include those contents in your script, effectively achieving the same result as a locked reading access to the file.

$file_contents = file_get_contents('your_file.php');
eval('?>' . $file_contents);