在学习php-phpantomjs时,使用文档源码报错
public function getEdit(Request $request){
$client = Client::getInstance();
$request = $client->getMessageFactory()->createRequest();
$response = $client->getMessageFactory()->createResponse();
$request->setMethod('GET');
$request->setUrl('http://info.sporttery.cn/football/pool_result.php?id=104873');
$client->send($request, $response);
if($response->getStatus() === 200) {
echo $response->getContent();
}
}
貌似是写入权限问题,但是为什么会在C:/WINDOWS上写入呢?怎么解决?
长风秋雁