Just to miss Jobs, how to solve

Source: Internet
Author: User
Just to miss Jobs.
PHP Code
  
  "/\s*\{youku\s*id_ (. *)}\s*/i", "callback" = "compile"); foreach ($cfgYouku as $val) {if (Isset ($val ["callback"])) {$template = Preg_replace_callbac        K ($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--------------------
Amid the Lord to walk well.
------Solution--------------------
I can't read it.
------Solution--------------------
The great man of technology. Worship
------Solution--------------------
Pursuit of the details of the pursuit of perfection!
------Solution--------------------
Jobs is important.
------Solution--------------------
nice!
The most amid to commemorate the Lord of the Wall Street is the Americans, they all raise the slogan: "We need jobs!"
------Solution--------------------
.. Can not understand AH ~

The perfect combination of technology and art ~ ~ ~
------Solution--------------------
Php

------Solution--------------------
  • Related Article

    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.