Re: php and xml
| From: | Chris Lee | Date: | Tue, 13 Feb 2001 21:20:06 +0000 |
| Subject: | Re: php and xml | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39496@lists.php.net to get a copy of this message | ||
<?php
fwrite(fopen("$PHP_SELF.xml", 'w'), "<message>testing
testing</message>");
?>
works for me on my linux box. have you checked your permisions ?
--
Chris Lee
Mediawaveonline.com
em. lee@mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
""Jan Grafström"" <jan.grafstrom@swipnet.se> wrote in message
news:96c6t7$52l$1@toye.p.sourceforge.net...
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>