I am trying to get data(like job vacancy) from page like http://www.quest.edu.pk/jobs/.I dont know how to get this.can anyone help me in doing this. Thanku in advance.
1条回答 默认 最新
duanhoupeng6642 2015-05-07 07:02关注php has inbuilt function
file_get_contentsto extract complete html source of webpage - like below:$html=file_get_contents("http://www.quest.edu.pk/jobs/")But its not recommended because we can not set timeout parameter in function. So instead of this you can use curl library and preg_match as suggested by @Sunil Pachlangia & @Noman.
you can refer this Link for more information.
解决 无用评论 打赏 举报