Re: [xml] Timeout of external xslt document request
- From: Rob Richards <rrichards ctindustries net>
- To: Joel Dubien <joel booyahnetworks com>
- Cc: xml gnome org
- Subject: Re: [xml] Timeout of external xslt document request
- Date: Thu, 28 Feb 2008 17:30:09 -0500
Joel Dubien wrote:
Hello,
I'm using libxslt with php, and I am doing a document call on an rss
feed that is not hosted by my server. I am worried that there maybe a
time when the rss feed is not responding and my site will suffer with a
long loading time.
Is there anyway to change the timeout value of that document call? It is
currently taking around 60 seconds to timeout, and I would like to
reduce that to 5 seconds.
PHP streams are used to handle I/O, so you have full control over all of
that.
You should read up on stream usage:
http://www.php.net/manual/en/ref.stream.php
as well as how to set the context when working with XML:
http://www.php.net/manual/en/function.libxml-set-streams-context.php
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]