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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -