View Single Post
Old 04-20-2004, 12:49 PM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. As to birdwatch.ph what do you get onscreen when you uncomment //print $answer."<br>\n"; in the robot_functions.php file?

WRT the admin index page, it shows only the site, domain or subdomain as the case may be. This is based off of parse_url (see below code). To view the directories/branches for a specific (sub)domain, just click the site and then click the update button.
PHP Code:
<?php

$link 
"http://foo.domain.com/dir1/dir2/dir3/file.php?a=b&c=d#anchor";
print_r(parse_url($link));

/* start output
Array
(
    [scheme] => http
    [host] => foo.domain.com
    [path] => /dir1/dir2/dir3/file.php
    [query] => a=b&c=d
    [fragment] => anchor
)
end output */

// foo.domain.com gets stored as http://foo.domain.com/

?>
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote