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