<?php
/************************************
 * Retrieve and display a file
 ***********************************/
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

//	include "get.php";					                #include PHP functions
	include "/home/sultans/web/php/demo/7adv/get.php";	#to make it work with PHP*Tester
	
	$filename  = $_GET['file'];

	if ($filename) 
	{
	    $data = getFile($filename);
	    
	    print $data;
	}
	else
	{
	    print "Enter a file name after the URL as.... <b> url?file=filename </b>";

	    include "../include.php";				#Hyperlink to see the code
	}	
?>