I know this is probably a noob question but I really can't figure this out.
I was ask to modify the existing php code so I downloaded the code and try running on my machine but i can't get it to work.
from my understand we write php code in
<?php
//some code
?>
but this code that i downloaded uses php code like this
<?
//some code
?>
It doesn't work on my machine but it works on the production server.
Does anyone know how this works?
Update:
Looking at the code in details, this is example of the code
<?php include $_SERVER["DOCUMENT_ROOT"]."/pages/layouts/summary.php"; ?>
then in summary.php
<?
session_start();
require_once $_SERVER["DOCUMENT_ROOT"]."/includes/mysql.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/includes/functions.php";
//more code ...
?>