note 10447 rejected and deleted from fwrite by zak

From: 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 '&lt;? echo "user" ?>' instead of 'user') here's what I have for code: if($message!=""){ $fd = fopen("chat.php3", "a"); $str = '<font color=#800000><b>&lt;? echo "$loginName" ?></b> says:</font> &lt;? 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

« previous php.notes (#9369) next »