Php 如何使用fopen()写入Z驱动器?
我已经提到了下面的代码Php 如何使用fopen()写入Z驱动器?,php,Php,我已经提到了下面的代码 $commandFile = "contains the some big string"; if($fp = fopen("file:///Z:/testName.txt","w+")) { fwrite($fp,$commandFile); fclose($fp); } Z驱动器具有用户凭据,即(用户名:网络,密码:网络)。Z驱动器已映射到我的计算机。如何将此文件写入Z驱动器? 提前感谢。如果此Z是运行脚本的机器上的常规驱动器,则简
$commandFile = "contains the some big string";
if($fp = fopen("file:///Z:/testName.txt","w+"))
{
fwrite($fp,$commandFile);
fclose($fp);
}
Z驱动器具有用户凭据,即(用户名:网络,密码:网络)。Z驱动器已映射到我的计算机。如何将此文件写入Z驱动器?
提前感谢。如果此
Z
是运行脚本的机器上的常规驱动器,则简单地说:
fopen('Z:/testName.txt',"w+")
应该足够了