src/Christiaan/PhpSandbox/SandboxBuilder.php
/**
     * Apply various settings to set up a secure sandbox
     *
     * @param string $openBasedir
     * @return $this
     */
Apply various settings to set up a secure sandbox
@param string $openBasedir
@return $this
Apply various settings to set up a secure sandbox @param string $openBasedir @return $this
public function secureSandbox($openBasedir)
    {
        $this->disableFunctions(
            array(
                'exec',
                'passthru',
                'shell_exec',
                'system',
                'proc_open',
                'popen',
                'pcntl_fork',
                'pcntl_exec',
                'phpinfo',
                'ini_set'
            )
        );
        $this->openBasedir(array($openBasedir));
        $this->workingDirectory($openBasedir);
        return $this;
    }
public function secureSandbox ( $ openBasedir ) { $ this -> disableFunctions ( array ( 'exec' , 'passthru' , 'shell_exec' , 'system' , 'proc_open' , 'popen' , 'pcntl_fork' , 'pcntl_exec' , 'phpinfo' , 'ini_set' ) ) ; $ this -> openBasedir ( array ( $ openBasedir ) ) ; $ this -> workingDirectory ( $ openBasedir ) ; return $ this ; }
Apply various settings to set up a secure sandbox
 @param string $openBasedir
 @return $this
Apply various settings to set up a secure sandbox @param string $openBasedir @return $this