<?php $filename =$_GET['filename']; $filename = '/var/modbuslog/'.$filename; $filecontents = file_get_contents($filename, FILE_USE_INCLUDE_PATH); echo $filecontents; ?>