Tencent PHP framework pure version 1.1 (with wonderful cases)

WBOY
Release: 2016-07-25 09:06:40
Original
1061 people have browsed it
The data of Tencent PHP framework pure version 1.1 (with wonderful cases) comes from
56 net Video open platform
Online example: (get the video on the homepage of 56.com every day) Homepage video demo
Online Example: (Get ad-free HD videos) Ad-free HD video demo

  1. $data = self::get_links("http://www.56.com");
  2. $file = "./cache/_data/".date("Ymd").'people.php' ;
  3. $keys = "./cache/_data/".date("Ymd").'key.php';
  4. $vids = "./cache/_data/".date("Ymd").'vid. php';
  5. if(!file_exists($file)){
  6. $_data_all = " file_put_contents( $file, $_data_all, LOCK_EX);
  7. }
  8. if($data){
  9. $keys_array = array_keys($data);
  10. if(!file_exists($keys)){
  11. $_data_key = " file_put_contents($keys, $_data_key, LOCK_EX);
  12. }
  13. }
  14. $keys_array = include $keys;
  15. if ($keys_array){
  16. foreach($keys_array as $k=>$v){
  17. $vid = self::getUrlId($v);
  18. if($vid){
  19. if(strlen($vid) < 6 or strlen($vid) >8){
  20. unset($vid);
  21. }else{
  22. $rs[] = $vid;
  23. }
  24. }
  25. }
  26. }
Copy code
Tencent PHP framework pure version 1.1 (with wonderful cases) Tencent PHP framework pure version 1.1 (with wonderful cases)


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!