current_uri ()

Returns the URI of the web page that this script is currently running on. This method only works correctly when run from a publicly-accessible web page.

Access

public static

Source

Method defined in extensions/s3browserupload.class.php | Toggle source view (12 lines) | View on GitHub

public static function current_uri()
{
    if (isset($_SERVER['REQUEST_URI']))
    {
        $uri = self::protocol();
        $uri .= self::domain();
        $uri .= $_SERVER['REQUEST_URI'];
        return $uri;
    }

    return null;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback