note 10447 rejected and deleted from fwrite by zak
| From: | zak@php.net | Date: | Thu, 04 Jan 2001 07:25:35 +0000 |
| Subject: | note 10447 rejected and deleted from fwrite by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9369@lists.php.net to get a copy of this message | ||
I'm working on a php-driven chat system for my site, and I can't seem to get php to write
the text for the variable (it writes '<? echo "user" ?>' instead of
'user')
here's what I have for code:
if($message!=""){
$fd = fopen("chat.php3", "a");
$str = '<font color=#800000><b><? echo "$loginName"
?></b> says:</font> <? echo "$message" ?><br>';
$len = strlen ( $str );
fwrite($fd, $str, $len);
fclose( $fd );
}
include "chat.php3";
If anybody can help, please e-mail me at doc_fia@deviantmail.com