So I have variables in between backslashes and I keep getting errors like:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/4/4/a/2769/2769/public_html/upload/a/thankyou.php on line 69
I would like put the values in a literal string variable like:
Expand|Select|Wrap|Line Numbers
- $str="d:\\$directory1\$directory2\$file.txt"
I believe this might not be possible so in the meantime I have been writing each component to the file one piece at a time :
Expand|Select|Wrap|Line Numbers
- $str ="d:\\"
- fwrite(fp, $str);
- $str=$directory1;
- fwrite(fp, $str);
- $str="\\";
- fwrite(fp, $str);