php - How to write to Z drive by using fopen()? -
i have mentioned below code.
$commandfile = "contains big string"; if($fp = fopen("file:///z:/testname.txt","w+")) { fwrite($fp,$commandfile); fclose($fp); } z drive has user credentials i.e (username:network,pass:network). z drive mapped computer. how write file z drive? in advance.
if z regular drive on machine running script, plain:
fopen('z:/testname.txt',"w+") should sufficient.
Comments
Post a Comment