Re: Re: PHP Mirrors

From: Date: Sun, 16 Oct 2011 21:44:12 +0000
Subject: Re: Re: PHP Mirrors
References: 1 2 3 4 5  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-12402@lists.php.net to get a copy of this message
On Sun, Oct 16, 2011 at 11:27 PM, Paul Dragoonis <dragoonis@gmail.com>wrote: > On Sun, Oct 16, 2011 at 3:57 PM, Hannes Magnusson <bjori@php.net> wrote: > > On Sun, Oct 16, 2011 at 19:58, Paul Dragoonis <dragoonis@gmail.com> > wrote: > >> On Sun, Oct 16, 2011 at 1:45 PM, Hannes Magnusson <bjori@php.net> > wrote: > >>> On Sun, Oct 16, 2011 at 19:42, Paul Dragoonis <dragoonis@gmail.com> > wrote: > >>>> Hi guys, > >>>> > >>>> Do all of our mirrors have CURL enabled ? > >>>> > >>>> I'm pulling in these files for the new beta homepage: > >>>> -- http://pear.php.net/feeds/latest.rss > >>>> -- http://pecl.php.net/feeds/latest.rss > >>>> > >>>> and I want to cache them on the mirror for 24 hours and would prefer > >>>> to use something stable like CURL instead of a file_get_contents() > >>>> call. > >>> > >>> The mirrors in general don't have curl enabled no. > >>> Having a local cache file on the mirrors could also be an issue. > >>> Either it needs to be pre-generated, or let the browser fetch cache > >>> and render it? > >> > >> Can you elaborate (technically) on what you meant by "or let the > >> browser fetch cache and render it" > > > > Use JS to fetch the rss file, and then use an rss js reader to loop over > it. > > Yes, my first thought was cross-domain issues however i now realised > that it's just a different subdomain and we should be able to fetch it > just fine. Also off-loading the responsibility to the client-side > takes good load off our mirrors :-) do you referring to the http://en.wikipedia.org/wiki/Same_origin_policy ? different subdomains are handled the same as different hosts, so you can't access those directly. some workarounds: http://stackoverflow.com/questions/1837848/retrieve-a-cross-domain-rssxml-through-javascript http://code.google.com/p/rss-javascript/ or am I missing something? -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.webmaster (#12402) next »