php include template failed on ubuntu+apache+php -
if ran template locally, template code can expand properly
<html> <head> <? include $template ?> </head> <body> <div id="chart_div"></div> </body> </html>
however if ran apache+php, failed expand.
i checked error.log under /var/log/apache2 cannot find error message related template/php file.
on local pc (osx), php version 5.5.20
on apache, php version is:
$ dpkg -s php5 package: php5 status: install ok installed priority: optional section: php installed-size: 29 maintainer: ubuntu developers <ubuntu-devel-discuss@lists.ubuntu.com> architecture: version: 5.5.9+dfsg-1ubuntu4.5 depends: libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.5) | libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.5) | php5-cgi (>= 5.5.9+dfsg-1ubuntu4.5) | php5-fpm (>= 5.5.9+dfsg-1ubuntu4.5), php5-common (>= 5.5.9+dfsg-1ubuntu4.5)
where should start investigate problem?
i have 0 exposure php before.
most installs not allow short tags, need <?php ?>
proper syntax.