<?php $openfile ="./test.txt"; $result = fopen ($openfile,"r") or die ("Couldn't open the file"); echo "File opened successfully"; ?>