Failed to split up PHP, depressed, and forced to work overtime for debugging

Source: Internet
Author: User
Failed to split PHP, depressed, and still working overtime debugging & nbsp; & nbsp; & nbsp;
                           $s = new SaeStorage();
$s->write('weixinfile','test1.txt',$keyword));
echo $keyword;

$keywordarry = explode(",",$keyword);
$s = new SaeStorage();
$s->write('weixinfile','test2.txt',count($keywordarry));
echo count($keywordarry);

Keywordis a serial number, and the input is policym03,qs16,123456789.pdf, but only one 4 is written into test1.txt.
But test2.txt is 2.
Where is the problem? I don't know where the problem is. All go crazy
Someone is not sleeping yet. please give me some guidance and help me solve the problem!
------ Solution --------------------
Echo $ keyword;
Echo count ($ keywordarry );
Are the values of the two statements normal?

If it is correct, there is a problem with the write of SaeStorage. Otherwise, there is a problem with keyword.
------ Solution --------------------
Paste the write () method and the content write is truncated.
------ Solution --------------------
I don't know what your write method does.
Paste it to see
------ Solution --------------------
Does SaeStorage generate entity files?
I have never used it. I should have never!
Otherwise, it is unnecessary for SAE to block the file operation function and construct a SaeStorage.
For the usage of SaeStorage, see http://apidoc.sinaapp.com/sae/SaeStorage.html

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.