Re: Progressive answers from a php query?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard escribió:
Hello, I don't know if this is possible with PHP alone but this is what I'm trying to do :

My script would check say for example 10 or 20 different http:// site addresses and collect some text from each page.

My problem is that it takes quite a long time to query so many sites, and the user would have to wait for un to 30 sec to 1 min before the page comes up ...

So there are two ways I can think of inorder to reduce the waiting time.

1) Perform asynchronous searches at the same time so all details are collected at the same time instead of waiting for the script to collect data from each one, one by one.

2) Somehow show data as it arrives instead of waiting for all the queries to be done.

Is it possible to do either of these two, or both of these two with only PHP? If so how would I do it?

or is it necessary to use javascript?

I think it's best to do this on the client side. If you want to have something done on the server, then at least use AJAX so the page gets loaded on demand.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux