Jump to content

Easyphp install - local problem


Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/188324-easyphp-install-local-problem/
Share on other sites

Thanks that did the trick.

 

Any way of propagating this change for all of my site?  :o

 

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.