small headache here, i,mm trying to create xsl stylesheet when the page.php is accessed so as soon as you click page 2 it will create an xsl stylesheet in xslstyle.xsl.
i have tried it using the fwrite but its a pain and doesnt do brackets or anythine like that errors everywhere.
this is just to create the first line:
<?xml version=1.0encoding= ISO-8859-1?>
not <?xml version="1.0" encoding="ISO-8859-1"?>
i had a similar problem with creating the xml file but i found this in which creates the xml decleration
$newxml = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="files/wes_ica.xsl"?>';
any ideas would be great on how to create this would be great