Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
discountsqatar opened this issue Aug 13, 2021 · 0 comments
Open

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

discountsqatar opened this issue Aug 13, 2021 · 0 comments

Comments

@discountsqatar
Copy link

discountsqatar commented Aug 13, 2021

        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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant