How to embed PHP in html.?

  • Thread starter Thread starter DANIEL C
  • Start date Start date
D

DANIEL C

Guest
Hi I am using Webplus to design my website however I have some PHP script that I need to execute first in every page. Can anyone tell me how I can include the code and get the server to execute it.
Thanks I have tried that but my web server is refusing to execute the code and just spews it accross the internet for all to see rather than running the PHP. I could put a .php extension on the end but that would be really inconveinient.
Could I have the code in an external file with a .php extension then include the file at the top. Would this work.
 
Back
Top