PHP+nginx+Yaf use one page to get another page stucked and nginx crashed -
i want use curl 1 page content , save static html file, environment: yaf+php5.3+nginx;
when run code, page stucked loading, after several seconds nginx crashed.
test1 controller code below:
class test1controller extends abstractcontroller { public function indexaction() { $ch = curl_init('http://www.alitui.com:8010/test2'); curl_setopt(curlopt_returntransfer,true); $content = curl_exec($ch); curl_close($ch); var_dump($content);exit; } }
and test2 controller code below:
class test2controller extends abstractcontroller { public function indexaction() { echo 1;exit; } }
Comments
Post a Comment