I am having this piece of php code. Which was working on php 5. Recently I updated to php 7 and its not working. Is there anything missing after upgrading to php 7. Here is my php code:
<?
define ("ROOT_DIR", "http://".$_SERVER['HTTP_HOST']."/"); ?>
<link rel="stylesheet" type="text/css" href="<?echo ROOT_DIR?>main.css"/>
Its unable to load main.css and also there are few links like:
<li> <a href="<?echo ROOT_DIR?>mapshop/index.php" >Mapshop test tools</a> </li>
<li> <a href="<?echo ROOT_DIR?>mapshop/certificate.php" >Durham certificate test</a> </li>
When I take mouse over these links, it shows http://myserver.com/<?echo ROOT_DIR?>
mapshop/index.php. Its not parsing/executing the echo command which I am expecting.