Advanced Search

Results 1 to 5 of 5

Thread: Retrieving info from a text file using php.

  1. #1
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default Retrieving info from a text file using php.

    hi i need to know if you can get infomation from a .txt file using php then outputting it in the browser?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,103
    Thanks
    18
    Thanked 615 Times in 611 Posts
    Blog Entries
    5

    Default

    Here you are hmsnacker:
    PHP Code:
    <?php
    echo file_get_contents('http://google.com');
    ?>
    If your page contains style on an external page and doesn't use the full location. The style won't take affect.

  3. The Following User Says Thank You to Nile For This Useful Post:

    hmsnacker123 (06-01-2008)

  4. #3
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default

    ok ty.. is there anyway of selecting certain lines in the text file?

  5. #4
    Join Date
    Jan 2008
    Posts
    4,103
    Thanks
    18
    Thanked 615 Times in 611 Posts
    Blog Entries
    5

    Default

    You could if you used str_replace(just one function you could use, much more out there ).
    http://us3.php.net/str_replace

  6. #5
    Join Date
    Jan 2008
    Posts
    4,103
    Thanks
    18
    Thanked 615 Times in 611 Posts
    Blog Entries
    5

    Default

    Please don't get off subject. Does my link help? If you want to say things like that. Think about PMing me.

Bookmarks

Posting Permissions

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