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;請問上述各行代表甚麼意思這根本不是php code php沒再用 == 吧
你可能搞錯語言了
頁:
[1]