Results 1 to 2 of 2

Thread: curl reading in bytes

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    154

    curl reading in bytes

    I am trying to convert following small code to curl but I am not getting successful. Any help please?

    Basically that code is reading file in 8kb parts.

    PHP Code:
    <?php
    $handle 
    fopen("http://www.example.com/""rb");
    $contents '';
    while (!
    feof($handle)) {
      
    $contents .= fread($handle8192);
    }
    fclose($handle);
    ?>

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: curl reading in bytes



    Has someone helped you? Then you can Rate their helpful post.

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