Home >Backend Development >PHP Tutorial >PHP small example: grab basic information code_PHP tutorial
Bangkejia (www.Bkjia.com) TutorialIn the end, I have to use php to do something! The haze of php has always shrouded me! Haha! Don’t complain about it, let it be Used for my pleasure. Learn all his essence. Fetching has always been my strong point. If I look at PHP two years later, let’s start here. Haha!
The code is as follows (currently copied from another website, it will be gradually improved and powerful in the future):
以下为引用的内容: $num=file_get_contents('http://www.bkjia.com/'); //网址部分 $num=str_replace("xxxx","yyyy",$num); //模板语言用生成的程序替换进去 eregi(" echo $head[0]; ?> |
Article from: http://www.cnblogs.com/jguangliang/