SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    chown linux:users\ /world Hartmann's Avatar
    Join Date
    Aug 2000
    Location
    Houston, TX, USA
    Posts
    6,455
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I have the following:

    $file1 = fopen("http://www.php.net/","r");
    print $file1;

    It prints: Resource ID #1;
    What is wrong??? How do I read from the site?
    Thanks,

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2000
    Location
    Warwickshire, England
    Posts
    557
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just use include("http://www.php.net/");

  3. #3
    Non-Member
    Join Date
    Apr 2000
    Location
    Waco, Texas.
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hartmann, you need to implode the array.

    $page = file("http://www.url.com");
    $page = implode("", $page);



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
  •