I wish to create a list of XML files in a php file.
I need all my xml files to be included in my php file. I have this working see below.
<?php header('Content-type: application/xml'); echo file_get_contents("exam1.xml"); when I try this it works well, now I try more than one.
<?php header('Content-type: application/xml'); echo file_get_contents("exam1.xml"); echo file_get_contents("exam2.xml"); it dose not read any of the files.
$var1 = file_get_contents("exam1.xml"); $var2=file_get_contents("exam2.xml");than echo variables. also check var_dump()