ja_blackburn Posted January 13, 2010 Share Posted January 13, 2010 I have installed Easyphp environment locally on my machine. I can do a test such as <html> <head> <title>My first page in PHP.</title> </head> <body> Current date. : <?php print (Date("l F d, Y")); ?> </body> </html> And i get the date, so this means php is working right?? When i try and load a site i am working on such as this: <? include("header.html"); ?> <div id="home"> </div> <? include("footer.html"); ?> Nothing displays. Source code of the browser shows the include commands so it isnt to converting it into HTML? Thanks. Quote Link to comment Share on other sites More sharing options...
dgoosens Posted January 13, 2010 Share Posted January 13, 2010 quite possible that the shorttags are not allowed in your EasyPhp install... try like this: <?php include("header.html"); ?> <div id="home"> </div> <?php include("footer.html"); ?> Quote Link to comment Share on other sites More sharing options...
ja_blackburn Posted January 13, 2010 Author Share Posted January 13, 2010 Thanks that did the trick. Any way of propagating this change for all of my site? All other pages failing unless i do the change maanually! Quote Link to comment Share on other sites More sharing options...
dgoosens Posted January 13, 2010 Share Posted January 13, 2010 Thanks that did the trick. Any way of propagating this change for all of my site? All other pages failing unless i do the change maanually! although this is not good practice, you can allow the shorttags by editing the php.ini file. Search for the line with "short_open_tag" and put on "on" short_open_tag = On EDIT: Oh, and don't forget to restart Apache... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.