<?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. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
""Jan Grafström"" <[EMAIL PROTECTED]> wrote in message
96c6t7$52l$[EMAIL PROTECTED]">news:96c6t7$52l$[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]