Only Miss jobs. how can this problem be solved?

Source: Internet
Author: User
Only Miss jobsPHPcode & lt ;? Phpheader ('content-type: text/html; charset = utf-8 '); $ template =' {youkuid_XMTc5ODgwOTA4} {youkuid_XMzA5NTUw only misses jobs
PHP code
  
  "/\s*\{youku\s*id_(.*)}\s*/i","callback"=>"compile")); foreach ($cfgYouku as $val){        if(isset($val["callback"]))          {                $template = preg_replace_callback($val["rege"], $val["callback"], $template);        } }        /** *  * forjobs * @param unknown_type $matched */function compile($matched){         $url = $matched[0];         preg_match("/id\_(\w+)/", $url, $matches);                  if (empty($matches)){            preg_match("#v_playlist\/#", $url, $mat);            if(!$mat) return false;            $html = self::_fget($url);            preg_match("#videoId2\s*=\s*\'(\w+)\'#", $html, $matches);            if(!$matches) return false;        }                 $link = "http://v.youku.com/player/getPlayList/VideoIDS/{$matches[1]}/timezone/+08/version/5/source/out?password=&ran=2513&n=3";        $retval = fileGetContent( $link );        if ($retval) {            $json = json_decode($retval, true);            $data['img'] = $json['data'][0]['logo'];            $data['title'] = $json['data'][0]['title'];            $data['url'] = $url;            $data['swf'] = "http://player.youku.com/player.php/sid/{$matches[1]}/v.swf";                        if( $data ) $data['object'] = "".$data['title'].""."";            return $data['object'];        } else {            return false;        }}/** *  * @author murain * @param String $url */function fileGetContent($url){       $ch = curl_init();       $timeout = 10;       curl_setopt($ch, CURLOPT_URL, $url);       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);       curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);       $contents = trim(curl_exec($ch));       curl_close($ch);       return $contents;}


------ Solution --------------------

------ Solution --------------------
Joe Helps the Lord to go well.
------ Solution --------------------
You cannot understand
------ Solution --------------------
Great Tech man worship
------ Solution --------------------
Pursuing details and perfection!
------ Solution --------------------
Jobs is very important
------ Solution --------------------
Nice!
The most amazing thing to remember is the Americans on Wall Street. they all shouted: "We need jobs! "
------ Solution --------------------
.. You cannot understand it ~

Perfect combination of technology and art ~~~
------ Solution --------------------
PHP

------ Solution --------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.