Re: Laufschrift mit xml Inhalt

From: Janwillem Borleffs (jw_at_jwscripts.com)
Date: 12/04/04


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



Relevant Pages

  • Re: IIS6, ASP.NET and Kernel Caching
    ... assuming that IIS static file hanlder processed it. ... I did not find either .xml or .gif extentions. ... > it is up to their caching policies. ... > HTTP Header has nothing to do with kernel caching. ...
    (microsoft.public.inetserver.iis)
  • Re: XML Database Best Practices
    ... If you really need to use an XML file as a data store, get used to how asp.net uses caching and take advantage of it. ... I am building an ASP.net website that connects to an XML database, and was wondering which is the best way to create the connection if I need frequent access to the database, I have one of the three options: ... I I know that if I were using SQL database I would go with option 3 because of the connection pooling and the security concerns, but this feature is not available for XmlDatabases AFAIK, should I depend on the caching features of ASP.net? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to save FOR XML results into TEXT column?
    ... XML for caching ... caching in ASP.Net. ... I need to use it to post orders to another downsteam ...
    (microsoft.public.sqlserver.xml)
  • Re: How to save FOR XML results into TEXT column?
    ... Read How XML is treated in Yukon ... >>purposes you're better off using something like the ... >caching in ASP.Net. ...
    (microsoft.public.sqlserver.xml)
  • Re: Urgent Problem receiving XML
    ... > I need to write a page that posts an xml document to a server. ... > What I don't yet know how to do, is get the XML that is sent back. ... remote host and process it how you see fit. ...
    (microsoft.public.dotnet.framework.aspnet)