It is possible to delay the output of the headers to the browser until the entire php script has finished executing?
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.
The headers will be sent once the first piece of code is sent from php to the webserver.
So you can just “not echo anything” until the end of the script or
use output bufferingto achieve the same thing