-
16 votesanswersviews
尽管拥有777权限且没有open_basedir值,但无法使用php写入/ tmp
我正在尝试使用php fopen函数将文件写入我的/ tmp目录(在apache服务器上),但它失败了: <?php $handle = fopen("/tmp/test.txt", "x"); if ($handle) echo "Success!"; else print_r(error_get_last()); ?> ...