Da_iMac_Daddy
Not-so-Neo-DumbA$$
I'm trying to set up a webpage that will allow me to update the news for my site from anywhere. I'm using PHP and fopen() to try and edit a a .txt file for use later in the web page. But I can't seem to get PHP to write to the file .....
Here is the code I'm using
when the Submit button is hit I get this a blank page but the news.txt file hasn't changed. Any help?
:edit:
BTW it doesn't seem to be a permissions problem I have news.txt set to be rwx for everyone.
Here is the code I'm using
Code:
$filename = 'news.txt';
$comment = $_POST['textarea'];
$handle = fopen("ftp://nathacof:*****@dekster.com/www/news.txt", 'r+');
fputs($handle, $comment);
fclose($handle);
exit();
when the Submit button is hit I get this a blank page but the news.txt file hasn't changed. Any help?
:edit:
BTW it doesn't seem to be a permissions problem I have news.txt set to be rwx for everyone.