Results 1 to 4 of 4
Thread: Newbie in file handling of php
Nov 26, 2004, 02:44 #1
Newbie in file handling of php
I am new in file handling of php.my code is working.It is not viewable when file mode is "r".but when modes are "w"or "a+" then it is fine means data are vanished in w mode and data is add when a+ mode.(if i use fwrite())
but why it is not seen when mode is "r".plz help me and if u know any tutorial yhen told me.
my code is:
//fwrite( $fp,'Hello World');
if(!$fp) die ("Cannot open the file.");
save it try.php in inetpub/wwwroot and call it try.phpunder localhost in url.
Nov 26, 2004, 04:03 #2
what mod of ./data.txt ?
Nov 26, 2004, 04:08 #3Originally Posted by St.
Nov 26, 2004, 04:15 #4
i mean access rules in system on file. who are owner of file? it is webserver user?