hi, i have made this code that reads a text doc and echos it to the page. here is my code:
PHP Code:
<?
$user = $_GET['user'];
echo '<html>
<head>
<title>Dans Web Server 2005!</title>
</head>
<body>
<h1>';
echo fopen($user . "fn.txt","r");
echo '</h1>
</body>
</html>'
?>
it is ment to echo what is in a text file (username and "fn.txt") but insted it echos Resource id #2. what is wrong with my code?
thanks, dandono