php-phantomjs
php-phantomjs copied to clipboard
echo $response->getContent(); not showing anything.
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.