Using php how would I be able to define the variable $type
into the content-type
of http://www.example.com
For example: $type
defined as "text/html"
So far this is what i am working with:
<?php
$url = 'http://www.example.com';
print_r(get_headers($url));
print_r(get_headers($url, 1));
?>
The code may be changed as much as needed
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…