chuan0326 發表於 2016-9-6 09:43:23

PHP獲取網頁

if (HTML.Level==0) thenfor u in string.gmatch(HTML.Content,'pc_t"><a href=%b""') dolocal url='http://www.flickr.com' .. string.sub(u,16,-2);AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1);end;elseif (HTML.Level==1) thenlocal s1,e1=string.find(HTML.Content,'page_p.zoomUrl = %b\'\'');if (s1 and e1) thenlocal url2='http://www.flickr.com' .. string.sub(HTML.Content,s1+18,e1-1);AddLink(url2,HTML.Url,HTML.Title,'',HTML.TaskID,2);elselocal s2,e2=string.find(HTML.Content,'class="photoImgDiv"><img src=%b""');if (s5 and e5) thenlocal url6=string.sub(HTML.Content,s5+13,e5-1);AddLink(url6,HTML.Url,HTML.Title,'',HTML.TaskID,2);end;end;end;end;end;end;請問上述各行代表甚麼意思

Astrid 發表於 2016-9-6 12:42:16

這根本不是php code

love0329 發表於 2021-9-12 03:19:11

php沒再用 == 吧
你可能搞錯語言了

chinalong9110 發表於 2022-3-17 19:26:26

頁: [1]
查看完整版本: PHP獲取網頁