冰楓論壇

標題: PHP獲取網頁 [打印本頁]

作者: chuan0326    時間: 2016-9-6 09:43
標題: PHP獲取網頁
if (HTML.Level==0) then
for u in string.gmatch(HTML.Content,'pc_t"><a href=%b""') do
local url='http://www.flickr.com' .. string.sub(u,16,-2);
AddLink(url,HTML.Url,HTML.Title,'',HTML.TaskID,1);
end;
else
if (HTML.Level==1) then
local s1,e1=string.find(HTML.Content,'page_p.zoomUrl = %b\'\'');
if (s1 and e1) then
local url2='http://www.flickr.com' .. string.sub(HTML.Content,s1+18,e1-1);
AddLink(url2,HTML.Url,HTML.Title,'',HTML.TaskID,2);
else
local s2,e2=string.find(HTML.Content,'class="photoImgDiv"><img src=%b""');
if (s5 and e5) then
local 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
這根本不是php code
作者: love0329    時間: 2021-9-12 03:19
php沒再用 == 吧
你可能搞錯語言了
作者: chinalong9110    時間: 2022-3-17 19:26
提示: 作者被禁止或刪除 內容自動屏蔽




歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓