
From the If the Commies had won the Cold War challenge. See all 507 entries (closed)
(, Fri 23 Apr 2004, 20:54, archived)
i'm so used to it being spelled tsar that it didn't even occur to me.
(,
Fri 23 Apr 2004, 21:01,
archived)
but it could be about russian roulette too
(,
Fri 23 Apr 2004, 21:02,
archived)
tsar and czar
I always wondered why tzar and csar didn't count too
(,
Fri 23 Apr 2004, 21:10,
archived)
I always wondered why tzar and csar didn't count too
but then again, I'm thick!
tj!
Can any php knowing b3tan enlighten me on why this on its own in a php file generates a parse error on line 13 (theres not even 13 lines!
<?php
//(C)Richard John 2004
// path to the file to store messages in
$filename = 'sms.txt';
$vars = ($_SERVER['REQUEST_METHOD'] == 'GET') ? $_POST : $_GET;
$fp = fopen($filename, 'a');
fputs($fp, 'msg= Latest message: "'.$vars['msg'].'" "\n");
fclose($fp);
?>
(,
Fri 23 Apr 2004, 21:01,
archived)
tj!
Can any php knowing b3tan enlighten me on why this on its own in a php file generates a parse error on line 13 (theres not even 13 lines!
<?php
//(C)Richard John 2004
// path to the file to store messages in
$filename = 'sms.txt';
$vars = ($_SERVER['REQUEST_METHOD'] == 'GET') ? $_POST : $_GET;
$fp = fopen($filename, 'a');
fputs($fp, 'msg= Latest message: "'.$vars['msg'].'" "\n");
fclose($fp);
?>
on the last line it generally means you left off a } or something
(,
Fri 23 Apr 2004, 21:03,
archived)
just stick in what it says it needs and see if it works.
(,
Fri 23 Apr 2004, 21:07,
archived)
fputs($fp, "msg= Latest message: ".$vars['msg']." \n");
(,
Fri 23 Apr 2004, 21:07,
archived)
It worked!!!!!
I think.....
edit: well, it's half working! when i go to www.website.com/sms.php?msg=test+message
It's writing Latest Message: to the text file, but not the actual message
(,
Fri 23 Apr 2004, 21:12,
archived)
I think.....
edit: well, it's half working! when i go to www.website.com/sms.php?msg=test+message
It's writing Latest Message: to the text file, but not the actual message
you has a load of single quotes in it which i couldn't see a purpose for, should work fine now
edit, try this:
//(C)Richard John 2004
// path to the file to store messages in
$filename = 'sms.txt';
$vars = $_GET['msg'];
$fp = fopen($filename, 'a');
fputs($fp, "msg= Latest message: ".$vars." \n");
fclose($fp);
(,
Fri 23 Apr 2004, 21:13,
archived)
edit, try this:
//(C)Richard John 2004
// path to the file to store messages in
$filename = 'sms.txt';
$vars = $_GET['msg'];
$fp = fopen($filename, 'a');
fputs($fp, "msg= Latest message: ".$vars." \n");
fclose($fp);
but my monitor makes all the quotes on the second to the last line look all fudged up...
(,
Fri 23 Apr 2004, 21:07,
archived)
doesn't php count every line, including the blank ones, so that the 13th line is actually the ?>
(,
Fri 23 Apr 2004, 21:06,
archived)
na dits not line 13, because that was for a different code and i am an idiot, i think its line 15
(,
Fri 23 Apr 2004, 21:08,
archived)
you must have left off something it was expecting, check the syntax for those functions
(,
Fri 23 Apr 2004, 21:07,
archived)
A real younger human guy (slightly daft) runs a group home for 4 puppets that have been convicted of murder (one 53 times).
The puppets are raunchy/horny/homicidal and swear better an twice as often as Howard Stern.
(,
Fri 23 Apr 2004, 21:20,
archived)
The puppets are raunchy/horny/homicidal and swear better an twice as often as Howard Stern.
is their a quote missing after
$fp, 'msg =
(,
Fri 23 Apr 2004, 21:08,
archived)
$fp, 'msg =
i understand now, with the whole KING being the russian CZAR. sorry!
Woo and yay too you!
(,
Fri 23 Apr 2004, 21:02,
archived)
Woo and yay too you!