This is documentation for Kohana v2.3.x.
Status | stub |
---|---|
Todo | Write me |
A helper designed to retrieve remote url and file status.
status($url)
returns the HTTP status code of the given URL. It takes:
$url
the address you want to get the status ofExample
echo remote::status('http://www.kohanaphp.com'); echo remote::status('http://trac.kohanaphp.com'); echo remote::status('http://dev.kohanaphp.com'); echo remote::status('http://www.kohanaphp.com/idontexist');
It will result in:
302 // Found 301 // Moved Permanently 200 // OK 404 // File Not Found