php and xml
| From: | Jan Grafstr�m | Date: | Tue, 13 Feb 2001 20:55:13 +0000 |
| Subject: | php and xml | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39488@lists.php.net to get a copy of this message | ||
Hi!
I have this php:
$message = ereg_replace("\r","", $message);
$message =
"<med>$message</med><nam>$name</nam><adr>$adress</adr><tel>$tele</tel>";
$fp = fopen (basename($PHP_SELF) . ".comment", "a");
fwrite ($fp, $message);
fclose ($fp);
There must be something wrong in first line beacause the value of message is
not writed.
I also want the output to contain a <customer nr ?>in beginning.
Thanks for any help
Jan Grafstrom