On Wednesday, Dec 11, 2002, at 13:36 US/Pacific, Antti wrote:

Thanks it works.
I forgot to say that i need to add a new line to that file. Now it puts all the stuff at the same line. How do I make it to add lines?
Use fputs with the string ending with a \n, as in:

$xmlfp = fopen($theXMLFile, "a");

fputs($xmlfp, "<?xml version=\"1.0\" encoding=\"ISO-8869-1\" ?>\n");
fputs($xmlfp, "<design type=\"developer\">\n");

.....

fputs($xmlfp, "</design>\n");
fclose($xmlfp);

terveisia, Kent


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to