Questions about fopen?

Source: Internet
Author: User
Fopen question ??? $ Filedata0htdocswww. 25229. comdatablock687-accept_service-order_str.data; $ moda +; if (! $ Fp & nbsp; fopen ($ file, & nbsp; $ mod) & nbsp; {echo & nbsp; 1 ;}else {ec fopen question ???
$ File = '/data0/htdocs/www.25229.com/data/block/687-accept_service-order_str.data ';
$ Mod = 'A + ';
If (! $ Fp = fopen ($ file, $ mod )){
Echo '1 ';
} Else {
Echo '2 ';
}

Fopen: failed to open stream: No space left on device is reported. if you change the file name, No error is reported. you can create a file and create a file directly on the server. the same error is reported, for example: if you change it to "687-accept_service-order_str.data1", no error is reported. there is still much space on the hard disk.
There is no problem with the number of directories in the partition. the partition format is ext4.

Why is there no problem with changing the file name? a headache !!!
------ Solution --------------------
Yes, deletion may have some impact, but didn't you tell me to copy it?
Make an announcement when the traffic is low. It won't have much impact.

The directory will lose the file, indicating that the directory contains too many files and too many fragments. It may also be caused by the aging of the track.
In short, it is helpful to change the directory on the hard disk.
There are too many files to solve, which may involve program modifications. you can put them first.

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.