4.4.0 release status - aftermath
Brian J. Tarricone
bjt23 at cornell.edu
Tue Jan 23 02:01:11 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Nick Schermer wrote:
> 2007/1/22, Brian J. Tarricone <bjt23 at cornell.edu>:
>
>> Anyway, I checked the feed link *before* deleting it, and it seemed to
>> work fine. Is there a specific URL that's not working?
>
> What do you mean? We're talking about the blog headlines on the
> frontpage of the website, right?
Ohhhhhh, well I feel stupid. I thought you were talking about the
site's own news feed (http://www.ca-us.xfce.org/?feed=rss2&lang=en).
> This is how the script works:
> - Download feed from blog.xfce.org
> - Cache the file in /tmp/sitefeed_<hash>
> - Parse the feed, create html etc etc.
[..]
Ok, makes sense. The file exists in /tmp, but it's zero-length, even
after deleting it and refreshing the page.
> Btw. What php version is the server using? It works on the latest php
> 4 version, but they change the parsing stuff sometimes between minor
> releases.
It's php4, and I know why the feed is broken:
Warning: file_get_contents() [function.file-get-contents]: URL
file-access is disabled in the server configuration in
/home/.nasty/xfcemirror/ca-us.xfce.org/include/parser.php on line 30
Tsk tsk! 'url fopen' (file_get_contents() uses php's fopen()
internally) is evil and a security risk, so it's disabled on my server.
Ideally you could use HTTP::Request, but I'm not sure it's safe to
assume that's available on all mirrors. The reliable option is
fsockopen(), but then you have to construct a request and parse the
reply headers manually (not hard, but requires non-zero effort).
> PS. i'm not able to reply by mail tomorrow, so that's why i explained
> how the script works.
I'll see if I have time to work up a solution using fsockopen() before
you get return.
-brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFFtV5X6XyW6VEeAnsRAwCZAKDHu2VN+9IoeFJPZNEd0pxmURLX9wCff4sj
igX9/bH8EKPEL5LZyqzL/j4=
=WJAV
-----END PGP SIGNATURE-----
More information about the Xfce4-dev
mailing list