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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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