Blog of King Software

Learn online with us in simple steps.

Must have blank space after PHP starting tag

Created by Bhavesh Gohil & Rikita Vasava on Date: 21/07/2022

Sometimes when we load the pages on live server some pages were seen with missing data without any coding error.
These type of problem arise when we update the server php version. So here is solution that might be helpful to you.
  • Go to your page code and see for php tags
  • If there is no space after php starting tag as shown in the image below, it will cause problem on live server which have PHP version 8.0.

  • So, give the space after php tag and reload the page to see your file running properly.