Why cannot I obtain a curl or file_get_contents url when the number of k is too high? Previously, I learned how to obtain the url through bbs. csdn. nettopics390572750, but some links are as follows: www.autohome.com.cn77options.htmlwww.autohome.com. cn59options. why is the k count too high when curl or file_get_con?
Previously, we learned the formula through http://bbs.csdn.net/topics/390572750, but some links are as follows:
Http://www.autohome.com.cn/77/options.html
Http://www.autohome.com.cn/59/options.html
Can be obtained normally
But the following link:
Http://www.autohome.com.cn/146/options.html
Http://www.autohome.com.cn/317/options.html
The result is null. I do not know why. Currently, the number of page K that can be obtained is smaller than the number of pages that cannot be obtained.
Please help me. what is the problem? The younger brother uses lnmp.
Share:
------ Solution --------------------
All in the range of 30 ~ 35 k. it is impossible to obtain the regular expression. it must be a problem with your regular expression.
------ Solution --------------------
Check your regular expression. Is there some situations that cannot be matched. You said you have obtained HTML. The problem is well located.