Hello people
This is not really a PHP question, but more closely relates to the my ability to monitor an
activity on the server from the browser.
I think that most of the people who use these forums are very clever and I hope to find a solution
to my problem.
I have a PHP code that runs on the server and updates the content of a file.
What I need is someway of writing the size of that file to the user's browser but keep that size updating as the size of the file is updated on the server.
Basically I have 2 processes:
One running on the server and updates the file
The second is updating the size of the file on the user browser as the file size changes on the server.
My question is:
What is the recommended way of updating the size of the file on the user's browser.
I don't want to communicate with the server using an iframe that will get the file size and will update
the value on the screen using JavaScript.
The reason is in such a solution, the content-type of the page that gets invoked by the iframe will be text/html
which makes this page very expensive when accessed a lot using Akami.
I am sure that this sort of problem is very common, especially today when many sites use AJAX.
I hope to get as many suggestions as possible
regards
Jason
help in monitoring progress on the server
Moderator: General Moderators
Yes, I know.
My question is not on the internal script.
My question is on the process that will poll the server.
I know that there are several ways of polling the server. The point of this thread
is to familiar me with those ways, so I could pick the one that is right for my application
thanks
Jason
My question is not on the internal script.
My question is on the process that will poll the server.
I know that there are several ways of polling the server. The point of this thread
is to familiar me with those ways, so I could pick the one that is right for my application
thanks
Jason