开发者

Call asynchronosuly two functions

This a php script.I need to download a file using php code.

The zip file can be accessed via a http path.The siz开发者_JS百科e is around 400 mb+.Currently i use copy command to save the file(this file lies in another server which is accessed through eg- http://sample.com/myzip.zip) which to local machine.But since its a large file the browser timeouts causing the page to output a blank page after 4-5 minutes.

Can i over come this with jquery using async?

Or can i do parallel processing using php.Please help?

If so could you guide me with a demo please?

Thanks in adv and waiting for the replyy.:)


http://www.reddit.com/r/PHP/comments/1jo517/multithreading_in_php_with_pthreads/

As I discussed in the first few lines of that post, PHP IS thread safe.

NOTHING HAPPENS IN A SYNCHRONOUS WAY, AT ALL

YES, IS IT POSSIBLE TO MAKE ASYNCHRONOUS FUNCTION CALLS IN PHP

Multi-threading is not going to help the OP here, so I have nothing to say; but the answer that @Ngm AKumar gave was incorrect in every way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜