当前位置: 首页>>代码示例>>PHP>>正文


PHP openpage函数代码示例

本文整理汇总了PHP中openpage函数的典型用法代码示例。如果您正苦于以下问题:PHP openpage函数的具体用法?PHP openpage怎么用?PHP openpage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了openpage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fclose

    fclose($file);
    if ($_page == "") {
        return FALSE;
    }
    return $_page;
}
$query = $_GET["query"];
if ($query) {
    $queryArr = explode(',', $query);
    $page = $queryArr[0];
    $archiv = $queryArr[1];
}
echo "<?xml version='1.0' ?>\n";
echo "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
$URL = "http://www.bibletv.cz/" . $archiv . "?page=" . $page;
if (($html = openpage($URL)) != FALSE) {
    $ItemsOut .= "<channel>\n<title>BibleTV archiv</title>";
    $vid = explode('?page', $html);
    foreach ($vid as $video) {
        $t1 = explode('=', $video);
        $t2 = explode('"', $t1[1]);
        $d++;
        if (is_numeric($t2[0])) {
            $Max[$d] = $t2[0];
        }
    }
    if ($Max != "") {
        $MaxNumPage = max($Max);
    }
    if ($MaxNumPage > 1) {
        $ItemsOut .= "<item>\r\n\t\t\t\t<title>Zadej číslo strany (Maximum je {$MaxNumPage})</title>\r\n\t\t\t\t<link>rss_command://search</link>\r\n\t\t\t\t<search url=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . "?query=%s," . $archiv . "\" />\r\n\t\t\t\t<media:thumbnail url=\"http://zam.opf.slu.cz/baco/image/otaznik.jpg\" />\r\n\t\t\t</item>";
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:bibletv.php

示例2: time

    $Media_ID = $t2[2];
    $original = time($date);
    //jsem lama a neprisel jsem na to jak udelat pozadovany timestamp aktualni v potrebne podobe: $hr  = 2; -letni cas $hr  = 1; - zimni cas
    $hr = 0;
    $min = 0;
    $sec = 0;
    $modified = $original + $sec + $min * 60 + $hr * 60 * 60;
    $Timestamp = date("YmdHis", $modified);
    $NOVA_APP_ID = 'nova-vod';
    $NOVA_SERVICE_URL = 'http://master-ng.nacevi.cz/cdn.server/PlayerLink.ashx';
    $ID = urlencode($NOVA_APP_ID . '|' . $Media_ID);
    $Secret = 'tajne.heslo';
    $data = $NOVA_APP_ID . '|' . $Media_ID . '|' . $Timestamp . '|' . $Secret;
    $Signature = urlencode(base64_encode(md5($data, $raw_output = true)));
    $Url = $NOVA_SERVICE_URL . "?t=" . $Timestamp . "&c=" . $ID . "&h=0&d=1&s=" . $Signature . "&tm=nova";
    if (($html_new = openpage($Url)) != FALSE) {
        $t1 = explode('<baseUrl>', $html_new);
        $t2 = explode('</baseUrl>', $t1[1]);
        $baseUrl = $t2[0];
        $t1 = explode('<url>mp4:', $html_new);
        $t2 = explode('</url>', $t1[1]);
        $playpath = "mp4:" . $t2[0];
        $url = $baseUrl . "/" . $playpath;
        if ($quality == "flv") {
        } else {
            $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>Přehrát v HQ</title>\r\n\t\t\t\t<link>http://127.0.0.1/cgi-bin/play.cgi?type=mp4nova&amp;url=" . $url . "&amp;y=" . $playpath . "</link>\r\n\t\t\t\t<enclosure type=\"video/mp4\" url=\"http://127.0.0.1/cgi-bin/play.cgi?type=mp4nova&amp;url=" . $url . "&amp;y=" . $playpath . "\"/>\r\n\t\t\t</item>\n";
        }
    }
    $ItemsOut .= "</channel>\n</rss>";
    echo $ItemsOut;
} else {
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:nova_parser_link.php

示例3: explode

</submenu>
<?php 
        }
        $videos = explode('<div class="article">', $html);
        $videos = array_values($videos);
        foreach ($videos as $video) {
            $t1 = explode('alt="', $video);
            $t2 = explode('"', $t1[1]);
            $titulek = $t2[0];
            $t1 = explode('<a href="', $video);
            $t2 = explode('"', $t1[1]);
            $link = "http://www.fashionstarstv.cz" . $t2[0];
            $t1 = explode('<img src="', $video);
            $t2 = explode('"', $t1[1]);
            $nahled = "http://www.fashionstarstv.cz" . $t2[0];
            if (($html = openpage($link)) != FALSE) {
                $t1 = explode('file: "', $html);
                $t2 = explode('"', $t1[1]);
                $odkaz = "http://www.fashionstarstv.cz" . $t2[0];
                $t1 = explode('Publikováno dne</strong>:', $html);
                $t2 = explode('<br />', $t1[1]);
                $datum = $t2[0];
                $pole = explode(".", $datum);
                $find = "mp4";
                $pos = strpos($odkaz, $find);
                if ($titulek != "") {
                    if ($pos === false) {
                        $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>" . $titulek . "</title>\r\n\t\t\t\t<pubDate>" . $datum . "</pubDate>\r\n\t\t\t\t<description>" . $popis . "</description>\r\n\t\t\t\t<link>" . $odkaz . "</link>\r\n\t\t\t\t<enclosure type=\"video/x-flv\" url=\"" . $odkaz . "\"/>\r\n\t\t\t\t<media:thumbnail url=\"" . $nahled . "\" />\r\n\t\t     </item>\n";
                    } else {
                        $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>" . $titulek . "</title>\r\n\t\t\t\t<pubDate>" . $datum . "</pubDate>\r\n\t\t\t\t<description>" . $popis . "</description>\r\n\t\t\t\t<link>" . $odkaz . "</link>\r\n\t\t\t\t<enclosure type=\"video/mp4\" url=\"" . $odkaz . "\"/>\r\n\t\t\t\t<media:thumbnail url=\"" . $nahled . "\" />\r\n\t\t     </item>\n";
                    }
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:fashiontv.php

示例4: explode

if (($html = openpage($URL)) != FALSE) {
    $ItemsOut .= "<channel>\n<title>" . $section . "</title>";
    $videos = explode('<div class="video">', $html);
    unset($videos[0]);
    $videos = array_values($videos);
    foreach ($videos as $video) {
        $t1 = explode('<span class="delka">', $video);
        $t2 = explode('</span>', $t1[1]);
        $cas = $t2[0];
        $t1 = explode('<li src="', $video);
        $t2 = explode('"', $t1[1]);
        $nahled = "http://www.mediasport.cz" . $t2[0];
        $t1 = explode('<a href="', $video);
        $t2 = explode('"', $t1[1]);
        $odkaz = "http://www.mediasport.cz" . $t2[0];
        $t1 = explode('html">', $video);
        $t2 = explode('</a>', $t1[2]);
        $titulek = $t2[0];
        if (($html2 = openpage($odkaz)) != FALSE) {
            $t1 = explode("/include/playvideo.php?id_video=", $html2);
            $t2 = explode("'", $t1[1]);
            $link = "http://www.mediasport.cz/include/playvideo.php?id_video=" . $t2[0];
            //$link = str_ireplace(array("&amp;"), array("&"), $lnk);
            $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>" . $titulek . "</title>\r\n\t\t\t\t<link>" . $link . "</link>\r\n\t\t\t\t<enclosure type=\"video/mp4\" url=\"" . $link . "\" />\r\n\t\t\t\t<pubDate>" . $cas . "</pubDate>\r\n\t\t\t\t<media:thumbnail url='" . $nahled . "' />\r\n\t\t\t</item>\n";
        }
    }
    $ItemsOut .= "</channel>\n</rss>";
    echo $ItemsOut;
} else {
    echo "TEST SELHAL !";
}
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:rally.php

示例5: sec2hms

}
function sec2hms($sec, $padHours = false)
{
    $hms = "";
    $hours = intval(intval($sec) / 3600);
    $hms .= $padHours ? str_pad($hours, 2, "0", STR_PAD_LEFT) . ":" : $hours . ":";
    $minutes = intval($sec / 60 % 60);
    $hms .= str_pad($minutes, 2, "0", STR_PAD_LEFT) . ":";
    $seconds = intval($sec % 60);
    $hms .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
    return $hms;
}
$link = "http://gdata.youtube.com/feeds/api/users/" . $search . "/uploads?q=" . $kat . "&start-index=" . $page . "&max-results=25&v=2";
$link = str_replace("&", "&amp;", $link);
//$html = file_get_contents($link);
$html = openpage($link);
echo '
	<channel>
		<title>Uploads by ' . $search . '</title>
		<menu>main menu</menu>
		';
if ($page > 1) {
    ?>
<item>
<?php 
    $sThisFile = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
    $url = $sThisFile . "?query=" . ($page - 25) . ",";
    if ($search) {
        $url = $url . $search . "," . $kat;
    }
    ?>
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:youtube_user2.php

示例6: while

    // volani odkud jsi na stranku prisel. pouzij nejakou jejich vychozi stranku.
    $file = $be->fopen($rowurl);
    while ($line = fgets($file, 1024)) {
        $_page .= $line;
    }
    fclose($file);
    if ($_page == "") {
        return FALSE;
    }
    return $_page;
}
$search = $_GET["link"];
echo "<?xml version='1.0' ?>\n";
echo "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
echo "<channel>";
if (($html = openpage($search)) != FALSE) {
    $videos = explode('LiveboxPlayer.init(', $html);
    unset($videos[0]);
    $videos = array_values($videos);
    //print_r($videos);
    foreach ($videos as $video) {
        $t1 = explode("jpg','", $video);
        $t2 = explode("');", $t1[1]);
        $titulek = $t2[0];
        $t1 = explode('Kraus', $video);
        $t2 = explode("'", $t1[1]);
        //$link = $t2[0];
        $link = str_ireplace(array("HQ"), array("LQ"), $t2[0]);
        $t1 = explode('Kraus', $video);
        $t2 = explode("'", $t1[3]);
        $nahled = $t2[0];
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:kraus_link.php

示例7: explode

        }
    }
    if ($hq != "") {
        $lhq = "http://cdn-dispatcher.stream.cz/getSource?id=" . $hq . "&proto=rtmp";
        if (($html2 = openpage($lhq)) != FALSE) {
            $t1 = explode('domain="', $html2);
            $t2 = explode('"', $t1[1]);
            $server = $t2[0];
            $t1 = explode('path="', $html2);
            $t2 = explode('"', $t1[1]);
            $cesta = $t2[0];
            $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>Přehrát v HQ kvalitě</title>\r\n\t\t\t\t<link>http://" . $server . "/" . $cesta . "</link>\r\n\t\t\t\t<enclosure type=\"video/mp4\" url=\"http://" . $server . "/" . $cesta . "\" />\r\n\t\t\t\t<pubDate>" . $datum . "</pubDate>\r\n\t\t\t\t<description>Popis:" . $popis . "</description>\r\n\t\t\t\t<media:thumbnail url='" . $nahled . "' />\r\n\t\t\t</item>\n";
        }
    }
    if ($lq != "") {
        $llq = "http://cdn-dispatcher.stream.cz/getSource?id=" . $lq . "&proto=rtmp";
        if (($html2 = openpage($llq)) != FALSE) {
            $t1 = explode('domain="', $html2);
            $t2 = explode('"', $t1[1]);
            $server = $t2[0];
            $t1 = explode('path="', $html2);
            $t2 = explode('"', $t1[1]);
            $cesta = $t2[0];
            $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>Přehrát v LQ kvalitě</title>\r\n\t\t\t\t<link>http://" . $server . "/" . $cesta . "</link>\r\n\t\t\t\t<enclosure type=\"video/flv\" url=\"http://" . $server . "/" . $cesta . "\" />\r\n\t\t\t\t<pubDate>" . $datum . "</pubDate>\r\n\t\t\t\t<description>Popis:" . $popis . "</description>\r\n\t\t\t\t<media:thumbnail url='" . $nahled . "' />\r\n\t\t\t</item>\n";
        }
    }
    $ItemsOut .= "</channel>\n</rss>";
    echo $ItemsOut;
} else {
    echo "TEST SELHAL !";
}
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:prima_link.php

示例8: explode

<durata></durata>
<pub></pub>
<image><?php 
        echo $DIR_SCRIPT_ROOT;
        ?>
image/prava.jpg</image>
<mediaDisplay name="threePartsView"/>
</item>
<?php 
        $ItemsOut .= "</channel>\n</rss>";
        echo $ItemsOut;
        //novy kod kvuli sifrovani odkazu ve vysledcich hledani
    }
} else {
    $url = $search . "?page=" . $page . "?orderBy=%40id__desc";
    if (($html = openpage($url)) != FALSE) {
        //print_r($html);
        //nastaveni bloku pro vyhledani pole polozek
        $videos = explode('class="fileLive">', $html);
        unset($videos[0]);
        $videos = array_values($videos);
        //parsovani polozek
        foreach ($videos as $video) {
            $t1 = explode('<a class="name" href="', $video);
            $t2 = explode('"', $t1[1]);
            $link = "http://www.uloz.to" . $t2[0];
            $t1 = explode('title="', $video);
            $t2 = explode('"', $t1[1]);
            $titulek = $t2[0];
            $t1 = explode('<img src="', $video);
            $t2 = explode('"', $t1[1]);
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:uloztolive_parser.php

示例9: fclose

    fclose($file);
    if ($_page == "") {
        return FALSE;
    }
    return $_page;
}
$link = $_GET["file"];
echo "<?xml version='1.0' ?>\n";
echo "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
if (($html = openpage($link)) != FALSE) {
    $ItemsOut .= "<channel>\n<title>Markiza Archiv</title>";
    $t1 = explode('video_player_', $html);
    $t2 = explode("',", $t1[1]);
    $conf = $t2[0];
    $config = "http://www.markiza.sk/xml/video/parts.rss?ID_entity=" . $conf;
    if (($html = openpage($config)) != FALSE) {
        $videos = explode('<item>', $html);
        unset($videos[0]);
        $videos = array_values($videos);
        foreach ($videos as $video) {
            $t1 = explode('<title>', $video);
            $t2 = explode('</title>', $t1[1]);
            $titulek = $t2[0];
            $t1 = explode('<media:thumbnail url="', $video);
            $t2 = explode('"', $t1[1]);
            $nahled = $t2[0];
            $t1 = explode('url="', $video);
            $t2 = explode('"', $t1[1]);
            $link = $t2[0];
            $t1 = explode('<pubDate>', $video);
            $t2 = explode('</pubDate>', $t1[1]);
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:markiza_parser_link.php

示例10: fputs

     fputs($fp, "Content-length: " . strlen($data_to_send) . "\r\n");
     fputs($fp, "Connection: close\r\n\r\n");
     fputs($fp, $data_to_send);
     while (!feof($fp)) {
         $res .= fgets($fp, 128);
     }
     fclose($fp);
     return $res;
 }
 // zaslání požadavku serveru a získání odpovědi
 $playlist = PostToHost("www.ceskatelevize.cz", "/ivysilani/ajax/playlistURL.php", "http://www.ceskatelevize.cz/ivysilani", $postdata_str) . "</end>";
 // získání výsledného URL playlistu - done...
 $t1 = explode('http://', $playlist);
 $t2 = explode('<', $t1[1]);
 $playlistURL = "http://" . $t2[0];
 if (($html = openpage($playlistURL)) != FALSE) {
     $t1 = explode('base="', $html);
     $t2 = explode('"', $t1[1]);
     //$r = "'".$t2[0]."'";
     $r = $t2[0] . "/";
     $videos = explode('<video ', $html);
     unset($videos[0]);
     $videos = array_values($videos);
     foreach ($videos as $video) {
         $t1 = explode('src="', $video);
         $t2 = explode('"', $t1[1]);
         $Y = $t2[0];
         $t1 = explode('label="', $video);
         $t2 = explode('"', $t1[1]);
         $quality = $t2[0];
         $rtmp = "'" . $r . $Y . "'";
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:ctlive.php

示例11: explode

    if ($_page == "") {
        return FALSE;
    }
    return $_page;
}
echo "<?xml version='1.0' ?>\n";
echo "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
$ItemsOut .= "<channel>\n<title>Markiza archiv</title>";
$query = $_GET["query"];
if ($query) {
    $queryArr = explode(',', $query);
    $file = $queryArr[0];
    $nazev = $queryArr[1];
    $disk = $queryArr[2];
}
if (($html = openpage($file)) != FALSE) {
    $t1 = explode('var product_id = "', $html);
    $t2 = explode('"', $t1[1]);
    $prod = $t2[0];
    $t1 = explode('var unit_id = "', $html);
    $t2 = explode('"', $t1[1]);
    $unit = $t2[0];
    $t1 = explode('<h2 class="title">', $html);
    $t2 = explode("</h2>", $t1[1]);
    $titulek = $t2[0];
    $t1 = explode('- ', $titulek);
    $t2 = explode(" ", $t1[1]);
    $date = $t2[0];
    $d = explode('.', $date);
    $dlouhy = array('adela-show', 'rodinna-kliatba', 'druhy-dych', 'mesto-tienov', 'televizne-noviny', 'prve-televizne-noviny', 'rychle-televizne-noviny-13-00', 'rychle-televizne-noviny-14-00', 'rychle-televizne-noviny-16-00', 'rychle-televizne-noviny-15-00', 'rychle-televizne-noviny-17-00', 'rychle-televizne-noviny-18-00', 'prve-pocasie', 'sportove-noviny', 'zo-zakulisia-markizy', 'na-telo', 'modre-z-neba', 'bez-servitky', 'mafianske-popravy', 'ordinacia-v-ruzovej-zahrade', 'bez-servitky', 'tudorovci-sex-moc-a-intrigy', 'sudkyna-hattchetova', 'dr-oz', 'v-dobrom-aj-v-zlom', 'zita-na-krku');
    $kratky = array('adela', 'rodkliatba', 'druhydych', 'mestotienov', 'tn', 'ptn', 'rtn1300', 'rtn1400', 'rtn1500', 'rtn1600', 'rtn1700', 'rtn1800', 'ppocasie', 'sport', 'zakulisie', 'natelo', 'mzn', 'bezservitky', 'popravy', 'ordinacia', 'servitka', 'tudors', 'sudkyna', 'droz', 'vdobrom', 'zita');
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:markiza_voyo_link.php

示例12: BrowserEmulator

    $be = new BrowserEmulator();
    $be->addHeaderLine("Referer", "http://www.uloz.to/");
    // volani odkud jsi na stranku prisel. pouzij nejakou jejich vychozi stranku.
    $file = $be->fopen($rowurl);
    while ($line = fgets($file, 1024)) {
        $_page .= $line;
    }
    fclose($file);
    if ($_page == "") {
        return FALSE;
    }
    return $_page;
}
$key = $_GET["key"];
$code = $_GET["code"];
$HTTP_SCRIPT_ROOT = current(explode('scripts/', 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/')) . 'scripts/';
echo "<?xml version='1.0' encoding='utf-8' ?>\n";
echo "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
$decrypt = 'http://kumen.capnix.com/decrypt.php?key=' . $key . '&code=' . $code;
if (($link = openpage($decrypt)) != FALSE) {
    $ItemsOut .= "<channel>\n<title>Uloz.to</title>";
    $t1 = explode('link', $link);
    $t2 = explode('end', $t1[1]);
    $page = $t2[0];
    $test = $page;
    $ItemsOut .= "\n\t<item>\n\t\t\t\t<title>Pokracovat</title>\n\t\t\t\t<link>" . $HTTP_SCRIPT_ROOT . "xLiveCZ/ulozto/ulozto_link.php?url=http://uloz.to" . $page . "</link>\n\t\t\t</item>\n";
    $ItemsOut .= "</channel>\n</rss>";
    echo $ItemsOut;
} else {
    echo "TEST SELHAL !";
}
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:ulozto_decrypt.php

示例13: initi

$shandle = initi("{$docroot}", $modbase);
trackhit($shandle, $webname, $scriptname, "", "", "mysqli", false, $dev);
// now let's make sure all tables exist
check_tables($shandle, $docroot, $debug);
// now we'll make set visable css attribute based on browser
$btype = !isset($_SESSION["btype"]) ? strtolower(browsertype($browser)) : $_SESSION["btype"];
$block = $btype == "msie" ? "block" : "inline";
$_SESSION["browser"] = $btype;
$_SESSION["shandle"] = $shandle;
$_SESSION["debug"] = $debug;
// check for authentication
$logstate = (isset($_SESSION["logstate"]) and $_SESSION["logstate"] == "authenticated") ? "isauth" : "unauth";
$authtitle = (isset($_SESSION["logstate"]) and $_SESSION["logstate"] == "authenticated") ? "Login Authenticated" : "You must log in for access";
$nextact = getvardata("nextact", "home", 99);
$_SESSION["nextact"] = $nextact;
openpage($btype);
echo "<body class='bodydiv'>\n";
if ($dev) {
    echo "<div class='{$btype}' title=\"Browser type {$btype} detected\" onclick=\"go('home');\"></div>\n";
    echo "<div id='xquery' class='noquery' title=\"Javascript needs to be activated for ROAM to work\"></div>\n";
    echo "<div id='logstate' class='{$logstate}' title=\"{$authtitle}\"></div>\n";
}
echo "<form name='mform' i='mform' action=\"{$scriptname}\" method='POST'>\n";
echo "\t<input type='hidden' name='nextact' id='nextact' value='{$nextact}'>\n";
show_menu();
echo "<div name='mainbox' id='mainbox' class='mboxdiv'>\n";
if (file_exists($nextact)) {
    include $nextact;
} else {
    $nextact();
}
开发者ID:williamoak,项目名称:roaming,代码行数:31,代码来源:index.php

示例14: explode

 $t1 = explode('<title>', $html);
 $t2 = explode('</title>', $t1[1]);
 $titulek = $t2[0];
 $t1 = explode('content="', $html);
 $t2 = explode('"', $t1[1]);
 $datum = $t2[0];
 $t1 = explode('<meta name="description" content="', $html);
 $t2 = explode('"', $t1[1]);
 $popis = $t2[0];
 $t1 = explode('<link rel="image_src" href="', $html);
 $t2 = explode('"', $t1[1]);
 $nahled = $t2[0];
 /*$t1 = explode("new SWFObject('", $html);
   $t2 = explode("'", $t1[1]);*/
 $W = "http://www.barrandov.tv/flash/unigramPlayer_v1.swf?itemid=65240";
 if (($html2 = openpage($id)) != FALSE) {
     //print_r($id);
     $f = "WIN 10,3,181,14";
     /*$t1 = explode('<hostname>', $html2);
       $t2 = explode('/', $t1[1]);
       $r = "rtmpe://".$t2[0].":1935/vodpass"; */
     $t1 = explode('<streamname>', $html2);
     $t2 = explode('</streamname>', $t1[1]);
     $y = $t2[0];
     $t1 = explode('<hashdquality>', $html2);
     $t2 = explode('</hashdquality>', $t1[1]);
     $hd = $t2[0];
     if ($hd == "true") {
         $high = str_replace("500", "HD", $y);
         $string = $HTTP_SCRIPT_ROOT . "xLiveCZ/nova.sh?type=barrandov&amp;p=" . $p . "&amp;y=" . $high;
         $ItemsOut .= "\r\n\t\t\t<item>\r\n\t\t\t\t<title>HD: " . $titulek . "</title>\r\n\t\t\t\t<link>" . $string . "</link>\r\n\t\t\t\t<description>" . $popis . "</description>\r\n\t\t\t\t<enclosure type=\"video/mp4\" url=\"" . $string . "\"/>\r\n\t\t\t\t<media:thumbnail url=\"" . $nahled . "\" />\r\n\t\t\t\t\r\n\t\t\t</item>\n";
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:barrandov_link.php

示例15: explode

 $t2 = explode('&', $t1[1]);
 $nahled = $t2[0];
 $t1 = explode('http://www.b-tv.cz/', $link);
 $t2 = explode(',', $t1[1]);
 $pom = $t2[0];
 $t1 = explode('"flashvars","file=', $html);
 $t2 = explode('&', $t1[2]);
 $link1 = $t2[0];
 $find = ".flv";
 $string = strpos($link1, $find);
 //print_r($html);
 if ($string === false) {
     $t1 = explode('"flashvars","file=', $html);
     $t2 = explode('"', $t1[2]);
     $pom2 = $t2[0];
     if (($html = openpage($pom2)) != FALSE) {
         $videos = explode('<track>', $html);
         unset($videos[0]);
         foreach ($videos as $video) {
             $t1 = explode('<title>', $video);
             $t2 = explode('</title>', $t1[1]);
             $titulek = $t2[0];
             $t1 = explode('<annotation>', $video);
             $t2 = explode('</annotation>', $t1[1]);
             $popis = $t2[0];
             $t1 = explode('<image>', $video);
             $t2 = explode('</image>', $t1[1]);
             $nahled = $t2[0];
             $t1 = explode('<location>', $video);
             $t2 = explode('</location>', $t1[1]);
             $link1 = $t2[0];
开发者ID:johnymarek,项目名称:xLiveCZ,代码行数:31,代码来源:brnotv_parser_link.php


注:本文中的openpage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。