if you get a parse error
on the last line it generally means you left off a } or something
( ,
Fri 23 Apr 2004, 21:03,
archived)
Or is it? method of programming:
just stick in what it says it needs and see if it works.
( ,
Fri 23 Apr 2004, 21:07,
archived)
not entirely sure what you doing with this line but try
fputs($fp, "msg= Latest message: ".$vars['msg']." \n");
( ,
Fri 23 Apr 2004, 21:07,
archived)
thank you!
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
no problem
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);
Not sure...
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)
and
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)