hi, using fread how do you get it to return a single line from a text doc. like with this kind of code
i have googled this and all it had was some other things that had nothing to do with my question. this is something to do with a program i am making which uses msinet to get what is returned into a string or text box.PHP Code:<?php
$line = $_GET['line'];
$uid = $_GET['uid'];
$filename = "D:/inetpub/xproot/users/" . $uid . "fav.txt";
$handle = fopen($filename, "r");
$contents = //make $contents to be what is on line defined by $line;
fclose($handle);
echo $contents;
?>
thanks, dandono




Reply With Quote