Welcome Guest, Not a member yet? Register   Sign In
I am getting <? for all instances of where I expect the PHP to be.
#1

[eluser]Unknown[/eluser]
Hi All.

I recently took an already existing codeigniter site off my hosting provider to my localhost. I have correctly changed the database.php file (or at least I don't have any reported problems). I checked the Logs folder but there is only an index.html file there.

For instance the <title> I am getting from the page source looks like this

Code:
<title><?= $meta_title; ?></title>

It should of course render to
Code:
<title>A nice Page </title>

Even built in items such as
Code:
<?= base_url() ?>
are rendering as
Code:
<?= base_url() ?>resources/css/reset.css
:-(

I downloaded a fresh copy of codeigniter from the codeigniter site, and codeigniter works as expected, so something is amiss with the existing site I downloaded. Dose anyone have any ideas what causes the <? to render instead of the intended php code ?

Thanks a mill,

Daragh


Messages In This Thread
I am getting <? for all instances of where I expect the PHP to be. - by El Forum - 11-15-2012, 11:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB