Skip to main content
Participant
March 7, 2024
Frage

PHP includes is not showing when I first open the php file

  • March 7, 2024
  • 2 Antworten
  • 184 Ansichten

When I first open a php file, it shows the entire page is "Design" view. However, the php includes to not display, instead it shows a little tab that says "php."

When I cut and paste that tag, suddenly all the php includes show up. This happens every single time I open a local php web page.

 

How do I make it show up immediately all the time?

    Dieses Thema wurde für Antworten geschlossen.

    2 Antworten

    Nancy OShea
    Community Expert
    Community Expert
    March 7, 2024

    Do you have a local testing server installed on your machine to parse PHP scripts -- i.e Xampp, Wamp or Mamp server?

    Is the server launched & running properly?

    When you preview your localhost in a browser, do you see the PHP includes?

     

     

     

     

    Nancy O'Shea— Product User & Community Expert
    Community Expert
    March 7, 2024

    You need to be working in live view to see PHP code executed. This is because PHP needs a server to execute the code.