For some reasons I'd like to have some data stored in a removable storage (namely USB-stick). I have the WAMP package installed and it has its .../www/ folder where scripts can do edit files etc. I'd like my server to be able to read/write files from/to another folder which is in the removable storage.
I've tried already relative paths and can see that
file_put_contents("C:\existing\path\copied\from\explorer\new_file.txt","Stage 3, successfully written");
Just a tiny syntax problem:
... prints something like:
string(46) "C:xisting\path\copiedromxplorer ew_file.txt"
... because you've been unlucky enough to use a double-quoted string and existing escape sequences:
\eescape (hex 1B)
\fformfeed (hex 0C)
\nnewline (hex 0A)
Some valid alternatives: