php4
IIS
WinXP
I'm trying to write files using php. I'm using the following idea as a test:
Code: Select all
<?php
$mymessage=fopen("message.txt","w+")or die("can't create file");
fwrite($message,"hello");
fclose($message);
?>Do I have to specify a full path for the file as in:
"c:/inetpub/wwwroot/TheWebSite/message.txt"
or a path from the root of the www server in IIS as in:
"/TheWebSite/message.txt"
or backslashes, forward slashes, escaped back/forward slashes? I've been RTFM'ing away without success
thanks,
Mike