Forum Moderators: coopster
If I guess... you want to generate a xml file with php, and not to write it on the server and then download it, but create it on the client's machine.
That can be done. Just echo it, not write it into the file:
file.xml (xml will have to be parsed by php as well)
<?php
$xml = "<?xml... ";//your whole xml file you want to generate
echo $xml;
?>
header("text of the header");
Hope this helps somehow. If it's not what you desired then write
Best regards
Michal Cibor
There isn't a way in php (which is server side language) to generate code on the client's side.
I hope that we understood each other.
Michal Cibor
but the xml file have to be created in my pc not in the hoster pc.
But your PC is the server currently, not the client, and the file gets processed server-side and then you send the results to the client?
Why must the file be created on your PC? Sorry, just not following this.