Welcome Guest, Not a member yet? Register   Sign In
Moving my site to a new server
#5

[eluser]Jelmer[/eluser]
Your old server probably had short tags enabled and you new one doesn't as it doesn't interpret <?=$variable?> as PHP.

If your CodeIgniter version is up to date (at least 1.7.0 if I remember correctly) you can switch on 'rewrite_short_tags' at the bottom of you main config.php file. Or if your CI version is up to date but you didn't update your config.php just add:
Code:
$config['rewrite_short_tags'] = TRUE;

CI will translate "<?=$variable?>" to "<?php echo $variable; ?>" for you after that.


Messages In This Thread
Moving my site to a new server - by El Forum - 07-29-2010, 04:01 PM
Moving my site to a new server - by El Forum - 07-29-2010, 04:06 PM
Moving my site to a new server - by El Forum - 07-29-2010, 04:16 PM
Moving my site to a new server - by El Forum - 07-29-2010, 04:25 PM
Moving my site to a new server - by El Forum - 07-29-2010, 04:28 PM
Moving my site to a new server - by El Forum - 07-29-2010, 04:34 PM
Moving my site to a new server - by El Forum - 07-29-2010, 04:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB