php不能生成类似.pid的标识进程的临时文件
时间:2021-07-01 10:21:17
帮助过:8人阅读
- $filename = "/tmp/test_php.pid";
- $fp = fopen($filename, 'w');
- //unset($fp);
- unlink($filename);
- sleep(6);
2,C程序代码
#include int main() - {
- char *filename = "/tmp/test_c.pid";
- FILE *fp;
- fp = fopen(filename, "w");
- unlink(filename);
- sleep(6);
- }
|