Quote:
Originally Posted by AlexSFBay
I figured it out... in case anybody was curious. See PHP function parse_url.
Code:
<?php
$myDomain = parse_url("http://www.yahoo.com/index.php#examples");
echo "Scheme: " . $myDomain["scheme"] . "<br>";
echo "Domain: " . $myDomain["host"] . "<br>";
echo "Path: " . $myDomain["path"] . "<br>";
echo "Anchor: " . $myDomain["fragment"] . "<br>";
?>
RESULT:
Scheme: http
Domain: www.yahoo.com
Path: /index.php
Anchor: examples
You can tweak it from there. Have fun!
|
I just realized there's more to the "Source" link function. Your script needs to be able to scan the text output and capture the URL.
Anyone wanna take a stab on how to do that.