trying to get xml-file
| From: | Jan Grafström | Date: | Mon, 19 Feb 2001 18:23:33 +0000 |
| Subject: | trying to get xml-file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40601@lists.php.net to get a copy of this message | ||
Hi!
I have this PHP:
-----
$message = ereg_replace("\r","", $message);
$message =
"<list><med>$message</med><nam>$name</nam><email>$email</email><adr>$adress</adr><tel>$telefon</tel></list>";
$fp = fopen (basename($PHP_SELF) . ".xml", "a");
fwrite ($fp, $message);
fclose ($fp);
------
I want to get<bok>at the beginning and </bok>at the end, inside the bok
I want several <list>. is it possible to do?
Thanks for any help?
Jan