File_get_contents là hàm có chức năng lấy nội dung 1 file. Tất nhiên đối với HTML thì nội dung file đó chính là mã nguồn của nó.
Vì vậy, ta sẽ sử dụng file_get_contents để grab. Tuy tốc độ chậm nhưng phù hợp với newbie :D
---Bắt đầu---
---__________---
Mình sẽ lấy ví dụ khi grab trang này...
Admin
Thread
grab bang filegetcontent
grab filegetcontents
graber bang filegetcontent
http tuoitreit vnthreads9557 huongdan grab bang filegetcontents html
huongdan grab bang filegetcontenthuongdangraber bang filegethuongdangraber bang filegetcontenthuongdangraberfilegetcontent