techjosh
05-12-2009, 11:34 PM
Hi guys. My question is how do I use the
$file=fopen("welcome.txt","xx");
command with write commands such as (replacing xx with) w, w+, a, x, x+
I'm continuing my efforts to create php style databases and am trying to build from the basics. It's simple enough to use the command above for reading files, I want to know how to write files now with the same command. It seems to be overcomplicated way too much anywhere I go. I'm getting this stuff specifically from http://www.w3schools.com/php/php_file.asp.
Thx in advance for any help. I'll post my code if requested.
$file=fopen("welcome.txt","xx");
command with write commands such as (replacing xx with) w, w+, a, x, x+
I'm continuing my efforts to create php style databases and am trying to build from the basics. It's simple enough to use the command above for reading files, I want to know how to write files now with the same command. It seems to be overcomplicated way too much anywhere I go. I'm getting this stuff specifically from http://www.w3schools.com/php/php_file.asp.
Thx in advance for any help. I'll post my code if requested.