PHP works but not inside include file |
[eluser]mistere[/eluser]
I have a CI 1.7.3 site that worked perfectly in Ubuntu but is now being migrated to Suse Enterprise server (SLES 11 SP1 64 bit mode). The site STARTS working fine - until I get to the view where I include the header: <?PHP include "header.tpl.php" ;?> That file is included BUT the php IN THE INCLUDED FILE is not executed. I tried renaming the file and changing permissions - all without success. For example when I want to pull in a css file the url that gets sent to the browser is: http://server.domain/index.php/<?PHP=.../style.css Any suggestions on how to tackle this?? I've hit a wall. Thanks!
[eluser]JHackamack[/eluser]
PHP has a short tags option: Code: <?php= or <?= Code: /* try changing it to TRUE and see if that helps you.
[eluser]mistere[/eluser]
I'll try that (although I've been using the long tag) when I get a chance. I'm under the gun to get this working so I just hard code the base_url for now :-( I'll also try <?PHP echo base_url(); ?> in the event that the = after the PHP is the problem here. Thanks |
Welcome Guest, Not a member yet? Register Sign In |