$stmt = "a.txt";$str = "奥力给!!!!";
echo "用fwrite函数写入文件:"; $fopen = fopen($stmt,'w');fwrite($fopen,$str);fclose($fopen); readfile($stmt);
echo "
";$path ="./"; $absolutepath=realpath($path); echo $absolutepath;
$stmt = "a.txt";$str = "奥力给!!!!";
echo "用fwrite函数写入文件:"; $fopen = fopen($stmt,'w');fwrite($fopen,$str);fclose($fopen); readfile($stmt);
echo "
";$path ="./"; $absolutepath=realpath($path); echo $absolutepath;
phpsutdy-爱好者 2020-04-24 17:32:312楼
你先看下 路径吧 你需要指定完整的路径
赞 +添加回复
电脑用户959902 2020-04-23 08:48:131楼
为什么创建同级文件夹会创建到D:\phpstudy_pro\Extensions\php\php7.3.4nts,这个问题如何解决。求大神指点
赞 +添加回复