On Fri, January 20, 2006 7:10 am, Jochem Maas wrote:
> I think you need to create a stream context resource with:
>
> http://www.php.net/manual/en/function.stream-context-create.php
>
> set the options you need on it with:
> http://www.php.net/manual/en/function.stream-context-set-option.php
>
> th
On Thu, January 19, 2006 6:49 pm, Geoff wrote:
> Richard, have you seen this:
> http://bugs.php.net/bug.php?id=5153&edit=1
> This bug goes back to June 2000. And it's closed even though it is
> clearly not fixed. Doesn't seem like they'll get to it anytime soon.
> You might have to do it the long w
I think you need to create a stream context resource with:
http://www.php.net/manual/en/function.stream-context-create.php
set the options you need on it with:
http://www.php.net/manual/en/function.stream-context-set-option.php
then pass the resource as the 4th arg to fopen() (rather passing in
Richard, have you seen this:
http://bugs.php.net/bug.php?id=5153&edit=1
This bug goes back to June 2000. And it's closed even though it is
clearly not fixed. Doesn't seem like they'll get to it anytime soon.
You might have to do it the long way, building your own protocol
handlers. Or, you might
On Thu, January 19, 2006 4:08 pm, Geoff wrote:
> I honestly have no idea if this would work, but maybe fopen supports
> non-blocking connections?
Not as far as I can tell...
You can call stream_set_blocking after it's open, but that doesn't
help a slow connection in the first place.
> Or creatio
3 suggestions:
I honestly have no idea if this would work, but maybe fopen supports
non-blocking connections? Or creation of context-based connections
(for which you can use stream_set_blocking). If so, you could take a
stamp of the current time plus a timeout value, make the fopen call
(which
On Thu, January 19, 2006 5:17 am, Jochem Maas wrote:
> Richard Lynch wrote:
>> So I've been poring over the docs for the new stream stuff, and it
>> looks pretty nifty, except...
>>
>> I'd really like to be able to just hand a URL to PHP like:
>> http://php.net/manual/en/ref.stream.php
>
> er you c
Richard Lynch wrote:
So I've been poring over the docs for the new stream stuff, and it
looks pretty nifty, except...
I'd really like to be able to just hand a URL to PHP like:
http://php.net/manual/en/ref.stream.php
er you can if allow_url_fopen ini setting is set to 1 (can't you?)
$fh = fo
So I've been poring over the docs for the new stream stuff, and it
looks pretty nifty, except...
I'd really like to be able to just hand a URL to PHP like:
http://php.net/manual/en/ref.stream.php
And let PHP figure out how to create a stream context out of that, and
which port to use, and how to
9 matches
Mail list logo