This is documentation for Kohana v2.3.x.

Table of Contents
Statusstub
TodoWrite me

Remote Helper

A helper designed to retrieve remote url and file status.

Methods

Status

status($url) returns the HTTP status code of the given URL. It takes:

Example

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