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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Apache Thrift Tutorial Error -