1)Write a PHP Script to display response header information for any text file using $_http_response_header.
<?php
file_get_contents("http://localhost/prg/slip17.php");
foreach($http_response_header as $v)
echo "$v";
?>
2)Write a script to create “vehicle.xml” file with multiple elements as given below
file_get_contents("http://localhost/prg/slip17.php");
foreach($http_response_header as $v)
echo "$v";
?>
2)Write a script to create “vehicle.xml” file with multiple elements as given below
<Vehicle>
<Type = Two Wheeler>
<Vehicler Name >-------- </Vehicle
Name >
<Company >--------- </Company>
<Color>--------</Color>
<Average>------</Average>
</Type>
</Vehicle>
Also add Type = “Four Wheeler” and its elements
<?xml version="1.0" ?>
<?xml-stylesheet type="text/css"
href=""?>
<vehical>
<Type a="Two_Wheeler">
<vname>Activa i </vname>
<company>Honda</company>
<color>blue</color>
<avg>19</avg>
</Type>
<Type b="Four_Wheeler">
<vname>Honda City </vname>
<company>Honda</company>
<color>blue</color>
<avg>22</avg>
</Type>
</vehical>