Reply to Re: Two connections at the same time

Your name:

Reply:


Posted by Marcel Molenaar on 01/22/08 12:26

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:4794be2d$0$64162$dbd4f001@news.wanadoo.nl...
> Marcel Molenaar wrote:
>> It would be nice to fire the two requests at the same time so the
>> total would be 3 seconds instead of 5 seconds.
>>
>> I do not think this is possible with PHP or am i wrong?
>>
>
> If you are using fsockopen to build your connection, you can use
> stream_set_blocking to select non-blocking mode, which enables you to do
> multiple requests as the following example shows:
>
> http://playground.jwscripts.com/async-streams.phps
>
> Using the SOAP extension, you might be able to use forking:
>
> http://www.php.net/manual/nl/function.pcntl-fork.php
>
> See this page for OS-specific restrictions.
>
>
`
Interesting!

Thanks for your help!

Marcel;

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация