TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Advanced PHP FILE NEWS SYSTEM QUESTION

Page: 1 2 3 Reply
Sep 15th 2002#69384 Report
Member since: Apr 12th 2002
Posts: 48
thanks will try..........5-mins later
there is another error this time on line 3
and same file.....news.php
[PHP]$fp = fopen("news.txt","r+");
$news_entry = $head."\t".$date."\t".$news; // ERROR
fwrite($fp, "$news_entry");
fclose($fp);
?>[/PHP]
Reply with Quote Reply
Sep 15th 2002#69410 Report
Member since: Apr 1st 2002
Posts: 1487
ugh are you sure? i tested this thing like 10 times.
Reply with Quote Reply
Sep 16th 2002#69426 Report
Member since: Apr 12th 2002
Posts: 48
did it work....im on a windows 98 os ....i uploaded the filles to my internet server and it didnt work either.....
Reply with Quote Reply
Sep 16th 2002#69440 Report
Member since: Apr 1st 2002
Posts: 1487
http://www.webimpulse.net/test/

go there and test for yourself. it's working.
Reply with Quote Reply
Sep 16th 2002#69447 Report
Member since: Apr 12th 2002
Posts: 48
i didnt name the form part php
Reply with Quote Reply
Sep 16th 2002#69448 Report
Member since: Apr 12th 2002
Posts: 48
no it still doesnt work......it says

Warning: fopen("news.txt", "r+") - No such file or directory in /home/rant-on/public_html/micro/news.php on line 3

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/rant-on/public_html/micro/news.php on line 6

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/rant-on/public_html/micro/news.php on line 7

can u copy the code in here again updated
thanks
Reply with Quote Reply
Sep 16th 2002#69449 Report
Member since: Apr 12th 2002
Posts: 48
you can try it on my server.....
goto
http://micro.rant-on.net/newsform.php
it doesnt work on my comp see if it comes out right on urs
Reply with Quote Reply
Sep 16th 2002#69450 Report
Member since: Apr 12th 2002
Posts: 48
i guess there is something still wrong with my news.php can u wreite it in here again....thanks
Reply with Quote Reply
Sep 16th 2002#69452 Report
Member since: Apr 1st 2002
Posts: 1487
[PHP]
$fp = fopen("news.txt","a+");
$news_entry = $head."\t".$date."\t".$news;

fwrite($fp,$news_entry);
fclose($fp);
?>

[/PHP]
Reply with Quote Reply
Sep 16th 2002#69461 Report
Member since: Mar 20th 2001
Posts: 3367
Warning: fopen("news.txt", "r+") - No such file or directory in /home/rant-on/public_html/micro/news.php on line 3

Have you set the permissions to news.txt to 666 to make it writable? Or is the file there in the first place?
Reply with Quote Reply
Page: 1 2 3 Back to top
Please login or register above to post in this forum