CodeIgniter Forums

Full Version: Not processing PHP scripts in View files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]spider pig[/eluser]
I'm uploading a site to a web server and it displays the View files without processing them so the output is:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
&lt;title&gt;&lt;?= $al_page_title ?&gt;&lt;/title&gt;
&lt;link rel="Shortcut Icon" href="&lt;?= base_url() ?&gt;images/favicon.ico" /&gt;
&lt;link rel="stylesheet" type="text/css" href="&lt;?= base_url() ?&gt;css/screen.css" /&gt;
&lt;!--[if IE 7]>&lt;link rel="stylesheet" type="text/css" href="&lt;?= base_url() ?&gt;css/ie7.css" /&gt;&lt;![endif]--&gt;
&lt;!--[if IE 6]>&lt;link rel="stylesheet" type="text/css" href="&lt;?= base_url() ?&gt;css/ie6.css" /&gt;&lt;![endif]--&gt;
[removed][removed]
[removed][removed]
[removed][removed]
&lt;?= $al_extra_header ?&gt;
&lt;/head&gt;
...

It's an Apache server running PHP 5.2.14 with the Server API set to CGI. I have removed the .htaccess file.

The we server is at Melbourne IT.

I have never seen anything like this before.

Any ideas on what's causing the problem?

El Forum

[eluser]skunkbad[/eluser]
php short tags on?

El Forum

[eluser]spider pig[/eluser]
Thanks Brian. The short tags were off. That fixed the problem. You're a legend!

El Forum

[eluser]CroNiX[/eluser]
You can also enable the use of short tags in the config which lets you use them in environments where they are turned off via php.ini.