diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/detect.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/detect.php b/examples/detect.php index 28d8a28..c368d0d 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -386,6 +386,14 @@ function detect_xml($r, &$out) function detect_fetcher($r, &$out) { $out .= $r->h2('HTTP Fetching'); + + $result = @include 'Services/Yadis/Yadis.php'; + + if (!$result) { + $out .= $r->p('Yadis code unavailable; could not test fetcher support.'); + return false; + } + if (Services_Yadis_Yadis::curlPresent()) { // XXX: actually fetch a URL. $out .= $r->p('This PHP installation has support for libcurl. Good.'); |