Results 1 to 4 of 4
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Posts
    362
    what is the function to grab a file (txt, csv, etc) from http address instead of ftp?

  2. #2

  3. #3
    Full Member
    Join Date
    January 18th, 2005
    Posts
    362
    doh.. thanks

    was looking for something similar to the ftp ones, didn't expect it to be in the file system functions

  4. #4
    Newbie
    Join Date
    January 18th, 2005
    Posts
    46
    In PHP;

    <pre class="ip-ubbcode-code-pre">my $page = file('http://www.site.com/page.html');

    echo $page;
    </pre>

    ...and in Perl;

    <pre class="ip-ubbcode-code-pre">require LWP::Simple;
    my $got = LWP::Simple::get('http://www.site.com/page.html');
    print $got;</pre>

    Hope that helps

    Cheers

  5. Newsletter Signup

+ Reply to Thread

Posting Permissions

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