(I've searched through the support forum but...)
With the following code, I'm getting a blank file:
fopen("/www/search/$domain", "a+") or die('cant open');
chmod("/www/search/$domain", 0777) or die('cant chmod');
$string = "some text";
fputs("/www/search/$domain", "$string") or die('cant write');
fclose("/www/search/$domain") or die('cant close');
I'm getting the error:
"Unable to find file identifier 0 in /www/action.php on line 51
cant write"
Why is my text not going in? I've set the permissions for the web dir '777', the file should be writable, etc... what am I missing?
Thanks much,
Bob