Forum Moderators: coopster
i have the following code that writes to a text file. the problem is it works fine with unix apache but doesnt seem to work with windows IIS. Can anyone please tell me how i can get it to work with IIS.
$fp=fopen("./data/data.db","a");
fwrite($fp,$photoFileName."¡́".$_REQUEST[event]."¡́".$_REQUEST[date]."¡́"
.$_REQUEST[location]."¡́".$_REQUEST[shortdescription]."¡́".$_REQUEST[longdescription]."¡́EOL");
fclose($fp);
Thank You
[edited by: jatar_k at 4:14 pm (utc) on Sep. 7, 2003]
[edit reason] broke line for sidescroll [/edit]
[ca.php.net...]
Note: On systems which differentiate between binary and text files (i.e. Windows) the file must be opened with 'b' included in fopen() mode parameter.