guyjusthere
08-04-2007, 09:25 PM
WHy wont my text file update?
this says that there is a connect error.. I have tried fwrite().. everything.. it all wont write to the file.. the only thing that works is if i read and echo...
THIS WORKS
<?php
$news = file("file.txt");
echo $news[0]. "<br>";
echo $news[1] . "<br>" . $news[2]
?>
But this doesn't???
<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>
Does this mean that my php server doesn't allow it?? b/ci have a huge forum on my site... www.106clan.org
this says that there is a connect error.. I have tried fwrite().. everything.. it all wont write to the file.. the only thing that works is if i read and echo...
THIS WORKS
<?php
$news = file("file.txt");
echo $news[0]. "<br>";
echo $news[1] . "<br>" . $news[2]
?>
But this doesn't???
<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>
Does this mean that my php server doesn't allow it?? b/ci have a huge forum on my site... www.106clan.org