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,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    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.
    Jeremy | jfein.net

  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,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

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

  6. #5
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

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

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
  •