note 10447 added to fwrite

From: Date: Thu, 04 Jan 2001 07:17:10 +0000
Subject: note 10447 added to fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-9368@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 http://www.php.net/manual/function.fwrite.php

« previous php.notes (#9368) next »