因为部分页面是ajax动态加载的,所以要用file_get_contents获取json数据。
1 dalaomj 2015-07-07 16:14:01 +08:00 用fsockopen或者curl,可以自定义的元素更多。file_get_contents连UA都是在php.ini里定义的。 |
![]() | 2 b821025551b 2015-07-07 16:14:47 +08:00 超时,or换curl |
![]() | 3 hjxx 2015-07-07 16:15:27 +08:00 |
![]() | 4 fghfjujiber OP 好的我试一试 |
![]() | 5 tabris17 2015-07-07 16:17:18 +08:00 通过 stream_context参数可以设置超时 |
![]() | 7 lincanbin 2015-07-07 17:57:57 +08:00 用curl。 |