Qiniu cloud storage-PHP-sdk cannot obtain the list file. How can this problem be solved?

Source: Internet
Author: User
The Code is as follows {code ...} returns an error string & #039; EOF & #039; (length3) Where is the error? PS: both the ASB accounts are correct. The error code is as follows:

require_once('php-sdk-master/qiniu/rs.php');$bucket = "**";$accessKey = '**';$secretKey = '**';Qiniu_SetKeys($accessKey, $secretKey);function fileList() {    global $bucket;    require_once('php-sdk-master/qiniu/rsf.php');    $client = new Qiniu_MacHttpClient(null);    list($items, $marker,  $err) = Qiniu_RSF_ListPrefix($client, $bucket);    if ($err !== null)     {        var_dump($err);    }     else     {        var_dump($items);    }}fileList();

An error is returned.

String 'eof '(length = 3)

What is an error?
PS: the ASB account is correct. This ensures no error.

Reply content:

The Code is as follows:

require_once('php-sdk-master/qiniu/rs.php');$bucket = "**";$accessKey = '**';$secretKey = '**';Qiniu_SetKeys($accessKey, $secretKey);function fileList() {    global $bucket;    require_once('php-sdk-master/qiniu/rsf.php');    $client = new Qiniu_MacHttpClient(null);    list($items, $marker,  $err) = Qiniu_RSF_ListPrefix($client, $bucket);    if ($err !== null)     {        var_dump($err);    }     else     {        var_dump($items);    }}fileList();

An error is returned.

String 'eof '(length = 3)

What is an error?
PS: the ASB account is correct. This ensures no error.

This should not be an error, just printed information, indicating that the list has ended, specifically you can view the https://github.com/qiniu/php-sdk/blob/master/qiniu/rsf.php file top comments.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.