cakephp - An error "Class 'HttpSocket' Not Found" occured -


i'm trying update cakephp ver.1.3 2.6.

and found error using mylibraryclass.

error is:

"class 'httpsocket' not found" 

and code is:

<?php  class myapiclient {      public function __construct() {         $this->socket = new httpsocket(); 

so added line before class.

<?php app::uses('httpsocket', 'network/http');  class myapiclient { 

but error still shown. there did deal case?

as per our discussion in comments have added following code in app/lib

app::uses('httpsocket', 'network/http'); 

so please place same in required controller before class definition.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -