http://www.openicon.org/get_contents.php

very temporary but wfm

thinks it must be a local issue...

~:"


Jonathan Chetwynd

[EMAIL PROTECTED]
http://www.openicon.org/

+44 (0) 20 7978 1764



<?php
$cty=file_get_contents("http://www.bbc.co.uk/programmes/a-z";, 0, $ctx);
echo $cty;
?>

On 17 May 2008, at 15:38, Brian Butterworth wrote:

I wrote some code a while ago that goes though the BBC programme catalogue at

http://www.bbc.co.uk/programmes/a-z

and creates a database table that I used to work out what the correct iPlayer picture code to use for each, matching them up against the programme schedules from

http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.schedule.getProgrammes&amp;channel_id=$strChannel&amp;start=$strDTS&amp;end=$strDTE&amp;limit=100&amp;detail=schedule

For some reason I can access http://www.bbc.co.uk/programmes/a-z from a browser, but doing a file_get_contents("http://www.bbc.co.uk/programmes/a-z ") from PHP just locks up.

Is this intentional?

I'm just having another go at making a 'what's on now' iGoogle theme for BBC channels...

Brian Butterworth

Reply via email to