function feeds_crawler_base in Feeds Crawler 6
Same name and namespace in other branches
- 6.2 feeds_crawler.module \feeds_crawler_base()
1 call to feeds_crawler_base()
- feeds_crawler_batch in ./
feeds_crawler.module - Batch callback.
File
- ./
feeds_crawler.module, line 125
Code
function feeds_crawler_base($url) {
$p = parse_url($url);
$output = '';
$output .= isset($p['scheme']) ? $p['scheme'] : 'http';
$output .= '://';
$output .= isset($p['user']) ? $p['user'] : '';
$output .= isset($p['pass']) ? ':' . $p['pass'] : '';
$output .= isset($p['user']) ? '@' : '';
$output .= $p['host'];
$output .= isset($p['port']) ? ':' . $p['port'] : '';
return $output;
}