PHP configuration problem - <? instead of <?php

Soldato
Joined
21 Oct 2002
Posts
3,008
Location
At home of course :p
Hi all

I'm trying to move a website someone else has programmed to a new server and the new site is displaying the php code rather than executing it.

Now I looked at the index.php of the site and there are lines of code such as the following;

<? include("connection.php");?>

If I change this to the following, it works fine;

<?php include("connection.php");?>

Therefore the issue seems to be that the programmer used <? instead of <?php

Since there are over 100 webpages, is there an easier way of simply changing all the code. I.e. is there a setting I can change to make php execute <? instead of just <?php

The server is running IIS and has php 5 installed on it.

Any help greatly appreciated.
 
Thanks everyone - that sorted it out

@FabienO - understand completely where you're comming from. I've already told them the site needs reprogramming and to obtain quotes but unfortunately that decision isn't mine to make.
 
Back
Top Bottom