I am developing the file locally with LAMPP and my source file is like this:
<?php echo "The server is working"; ?><?php$file=fopen("file.txt", "r") or exit("Unable to open file!");?>
In the same directory is a text file named file.txt and it has a line on text in it. The output however is only The server is working. Nothing else.