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.