Hi Everyone,
http://en.wikipedia.org/wiki/Special_Folders
I am having a problem with accessing a special folder in a fopen stream in php.
Example
$fp = fopen("%USERPROFILE%/Desktop/text.txt", 'wb');
fwrite($fp, $data);
fclose($fp);
I try this with sysinternals process monitor running to try and see what is actually happening and it looks something like this.
C:/xampp/htdocs/test/%USERPROFILE%/Desktop/text.txt PATH NOT FOUND
Well apparently two thing are going wrong, PHP is treating the path as a relative path and the special folder is not being evaluated.