I have a PHP script that keeps running in the background endlessly. It also keeps flush()ing debug messages. Is there a way to display those flushed messages within another HTML page?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Redirect the output from the background script to some file, and display that file in the HTML page using readfile() or similar? If you’re printing to stdout from the background script, it’s going somewhere. Maybe somewhere useful (a file), maybe somewhere useless (your terminal, or /dev/null).