Display XML file : Text File Read « File Directory « PHP






Display XML file

<?php

$xml_string = file_get_contents("contact.xml","rb");

echo $xml_string;

?>


           
       








Related examples in the same category

1.Read text file into array and output
2.Read text file with format
3.Read file content with only one command
4.Read in and perform operations on a file line by line
5.Read text file into an array in one function
6.Try to open a text file
7.Viewing the Source of a Document