Skip to content

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

@discountsqatar

Description

@discountsqatar
        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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions