Whippet::serve_script PHP Method

serve_script() public method

Serves a specific script; for example, /wp-admin/install.php
public serve_script ( )
    public function serve_script()
    {
        $this->request_type = Whippet::SCRIPT;
        // Change to the script's directory so that relative includes work
        chdir(dirname($this->request_path));
        $this->serve_headers();
        // Return some code to be executed by the router at global scope
        return 'require "' . $this->request_path . '";';
    }