Re: Webcal and file_get_contents
| From: | Jim Lucas | Date: | Tue, 06 Dec 2011 17:21:27 +0000 |
| Subject: | Re: Webcal and file_get_contents | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315941@lists.php.net to get a copy of this message | ||
On 12/6/2011 2:57 AM, Davo Smith wrote:
> Does anyone know if there is a simple way to convince
> 'file_get_contents' to treat webcal urls (e.g.
> webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics ) as
> being the same as an http url? (according to Wikipedia, http is
> assumed for webcal urls)
Reading the other emails makes me ask the question, must you use
file_get_contents? Or could you use cURL?
>
> I've looked into using 'stream_wrapper_register', but, unless I've
> misunderstood it, this would require me to write the whole http access
> myself, without being able to just pass it onto the internal http
> processing code.
>
> I've done some web searching, looked through the PHP docs and had a
> look through the archives here, but not managed to find anything
> (sorry if I've missed anything obvious).
>
> Davo
>
--
Jim Lucas