Source for file writeTest.php
Documentation is available at writeTest.php
//place this file in an RWX folder, to see if it's writeable
$fileName =
"data.txt"; //this is the file used to read/write
//w+ is write and/or create
//a+ is append and/or create
$isOpen =
fopen($fileName,$myMode);//try to open file
fwrite($isOpen,"Here is my text!");
//print "Yahoo it worked!";
fileRead($fileName);//this is my new function
//tell them bad stuff happened...
//do magic stuff here.. like read a file!!
$myArray =
file($fileName);
for($x=
0;$x<
count($myArray);$x++
)
//do magic stuff here, like read the line!!
//or better yet print the line???
print
$myArray[$x] .
'<br />';
Documentation generated on Sat, 03 May 2008 19:47:45 -0700 by phpDocumentor 1.4.1