Wyskakuje mi taki błąd:
Fatal error: Using $this when not in object context in /home/mylogin/domains/strona.pl/public_html/login/index.php on line 13
Klasa korzysta jeszcze z 3 innych plików:
/** * PEAR and PEAR_Error classes (for error handling) */ require_once 'PEAR.php'; /** * Socket class */ require_once 'Net/Socket.php'; /** * URL handling class */ require_once 'Net/URL2.php';
$this->sock =& new HTTP_Request(); //line 13 $this->sock->_allowRedirects = true; $this->sock->clearCookies(); $this->sock->setURL($url); $this->sock->setMethod('GET'); $this->sock->sendRequest();