php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

echo $response->getContent(); not showing anything.

Open discountsqatar opened this issue 3 years ago • 0 comments

        require_once 'vendor/autoload.php'; 
        use JonnyW\PhantomJs\Client;
        $client = Client::getInstance();
        $client->getEngine()->setPath('ext'.DIRECTORY_SEPARATOR.'bin'.DIRECTORY_SEPARATOR.'phantomjs.exe');
        /** 
        
         **/
        $request = $client->getMessageFactory()->createRequest('http://howi.in', 'GET');
    
        /** 
         * 
         **/
        $response = $client->getMessageFactory()->createResponse();
    
        // Send the request
        $client->send($request, $response);
    
        if($response->getStatus() === 200) {
            // Dump the requested page content
            echo $response->getContent();
        }

After running the code it's showing blank screen.. Please any one help.

discountsqatar avatar Aug 13 '21 06:08 discountsqatar