Re: Laufschrift mit xml Inhalt
From: Janwillem Borleffs (jw_at_jwscripts.com)
Date: 12/04/04
- Next message: Oli Filth: "Re: backslashes added to quotes when reading from form"
- Previous message: Nikolai Chuvakhin: "Re: getting started with understanding php"
- In reply to: Moritz Behner: "Laufschrift mit xml Inhalt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 4 Dec 2004 01:14:27 +0100
Moritz Behner wrote:
> wie kann ich den Inhalt einer XML-Datei
> [http://newsticker1.gdata.de/dl_shop/rss/rss-outbreak.xml] in eine
> Laufschrift einbinden?
>
Here's an example:
http://www.jwscripts.com/playground/ticker.phps
This example does not include caching of the xml, so with each page request
the xml file is retrieved from the remote host.
Caching is always a good idea, so read the online manual to catch up with
appropriate functions like:
file_put_contents
filemtime
Also, the applied file_get_contents function doesn't support timeouts (means
that your script will hang when the remote host doesn't respond).
See the manual entry on fsockopen to read about a function that does.
JW
- Next message: Oli Filth: "Re: backslashes added to quotes when reading from form"
- Previous message: Nikolai Chuvakhin: "Re: getting started with understanding php"
- In reply to: Moritz Behner: "Laufschrift mit xml Inhalt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|