Results 1 to 8 of 8

Thread: return a single line from a text doc

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    return a single line from a text doc

    hi, using fread how do you get it to return a single line from a text doc. like with this kind of code
    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;
    ?>
    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.
    thanks, dandono
    Last edited by dandono; Jun 2nd, 2005 at 11:02 AM.
    If there is only one perfect person in the universe, does that make them imperfect?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width