is_writeable()
Posted: Sat Dec 13, 2003 6:06 pm
hello;
I have a .txt that I am trying to write to; it is set now at 777 and the directory that it is in is also set to 777; when using
I get a "no" response;
Next I deleted the "H_B_scroller_1_captions.txt" thinking that the fopen() could create the .txt
however the .txt file is not getting created;
any thoughts?
thanks
Shannon Burnett
Asheville NC USA
I have a .txt that I am trying to write to; it is set now at 777 and the directory that it is in is also set to 777; when using
Code: Select all
<?php
if (is_writeable("H_B_scroller_1_captions.txt"))
{ echo "&pass_word_OK=yes"; //echos to a .swf file
$opened_file = fopen("H_B_scroller_1_captions.txt","wb");
fwrite($opened_file,"blah=hhjhh&");
fclose($opened_file);
}
else
{echo "&pass_word_OK=no"; //echos to a .swf file
}
?>Next I deleted the "H_B_scroller_1_captions.txt" thinking that the fopen() could create the .txt
Code: Select all
<?php
$opened_file = fopen("H_B_scroller_1_captions.txt","wb");
fwrite($opened_file,"blah=hhjhh&");
fclose($opened_file);
?>any thoughts?
thanks
Shannon Burnett
Asheville NC USA