Originally Posted by
timmy
I could'nt view them tho so not sure whether it was you or I at fault.. probably me, hehe.
Take a look at this url ...
http://orac.caffeine.co.nz/logo.php?channel=1001
Channel number change to 1002 ... 1003 ... 1004 etc ... you'll get the logos for each channel.
Here is the php code, pretty basic
Code:
<?
// Connect to orac (local host and select user only)
$db = mysql_connect('localhost', ...user..., ...pass...);
mysql_select_db('guideData', $db);
// Query the database
$out = mysql_query("SELECT logoS1 FROM channels WHERE channel_id='$channel'", $db);
if (mysql_num_rows($out) > 0) {
// Get the blob
$row = mysql_fetch_array($out);
$jpg = $row["logoS1"];
// Stream the file to the browser
header("Content-type: image/jpeg");
echo $jpg;
}
mysql_close($db)
?>
1 x Philips TiVo Series 1, Cachecard, 1 x 1TB SATA (with recent TradeMe sourced adaptor), Mk II Pal Tuner Mod, NZ Emulator, Previously Dual A/V Source, Now Pay Satellite
2 x TiVo HD, Freeview, HNP, 2TB (WD-AV) jmfs upgraded
1 x Thomson UK TiVo, Cachecard, 200GB, Testing Work
Bookmarks