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

javascript - Feed FileReader from server side files -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

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