What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Shoutbox help

Pages: (4): « First « 1 2 3 [ 4 ] Last »
PHP Shoutbox help
Author: Message:
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
O.P. RE: PHP Shoutbox help
hm, i did... and it seems to work / go funny

code:
$file='shouts.txt';
if(empty($_POST['shout'])) {
echo "Sorry its empty";
}
$new = strip_tags($_POST['user']).":".strip_tags($_POST['shout']) . "\n" . file_get_contents($file);
$fp =fopen($file,'w');
fwrite($fp, $new);
fclose($fp);
   $shoutbox_page = "http://pps3.awardspace.com/Shoutbox/index.php";
   header("Location: $shoutbox_page");

?>

[Image: lost7ru.gif]
06-09-2007 10:14 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: PHP Shoutbox help
You can't use a header re-locate after outputting anything to the page. Always use header before any echo and other outputting functions.
[Image: 1-0.png]
             
06-09-2007 11:56 PM
Profile PM Web Find Quote Report
Pages: (4): « First « 1 2 3 [ 4 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On