Jump to content

Recommended Posts

I think what we're all trying to get at is, what are you doing that's causing that kind of delay?  In most normal cases, long execution time is the result of poorly written code, either PHP code itself, or PHP code that generates a ton of unneeded SQL queries.

 

To (not) answer the question, I'm not sure if you can do what you want.  PHP doesn't have true asynchronous behavior as far as I'm aware.  I'm not sure if it would be possible to fork processes, and if it were possible, if the two would be able to interact.

Link to comment
https://forums.phpfreaks.com/topic/266043-loader/#findComment-1363329
Share on other sites

The connection opens, code gets parsed, data gets sent, and it closes.

 

There's no way to 'update' the client on progress without some sort of client-side checking, or forcing a connection to remain open. Neither of these are possible with PHP alone, from what I understand.

Link to comment
https://forums.phpfreaks.com/topic/266043-loader/#findComment-1363331
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.