Maybe you didn't understand the first answer correctly.
Make two programs - One is the php script you have now (but a littlebit modified).
The 2nd is a program that continuously read /writes on the Serial port what ever it's protocol requires and that either gives each change to the first program whenever is requests this. (f.e. by giving a length + data) then even if the amount of data is 0 (no data) you do pass something that it can act upon (the 0 size).
The other possiblity is that you keep a scrolling buffer in the second program (like a video buffer in VGA or a terminal) every time the front end requests it you send the whole current frame to the front end.
The valid method really depends on what you want to do with the data.