如果我有 :
domainA.com/out.php:
<?php
header('location: http://domainB.com/');
?>
是否有可能获取 url :domainB.com
和from ?IP Address
domanA.com/out.php
domainC.com
我想要的是 :
domainA.com/index.php
<?php
$data = getUrlandIp("domainA.com/out.php");
echo $data[0]; # wanted output (URL) : domainB.com
echo $data[1]; # wanted output (IP) : 133.133.133.133
?>