On Jan 22, 2014, at 00:26, Ryan Schmidt wrote:
> On Jan 20, 2014, at 23:04, Austin Mico wrote:
>
>> If you have this code below which can be viewed exactly like this on browser on version 1.8.4
>> <?php
>>
>> // Define path to application directory
>> defined('APPLICATION_PATH')
>> || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
>>
>> // Define application environment
>> defined('APPLICATION_ENV')
>> || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
>>
>> // Ensure library/ is on include_path
>> set_include_path(implode(PATH_SEPARATOR, array(
>> realpath(APPLICATION_PATH . '/../library'),
>> get_include_path(),
>> )));
>>
>> /** Zend_Application */
>> require_once 'Zend/Application.php';
>>
>> // Create application, bootstrap, and run
>> $application = new Zend_Application(
>> APPLICATION_ENV,
>> APPLICATION_PATH . '/configs/application.ini'
>> );
>> $application->bootstrap()
>> ->run();
>>
>>
>> Here is the the source code viewed on browser after installing 1.8.5-1.
>>
>> bootstrap() ->run();
>
> That’s exactly what I get *if* the server is sending this with the MIME type text/html. Is it?
Presumably yes, since you’ve shown us you’ve requested that in your configuration:
On Jan 21, 2014, at 23:43, Austin Mico wrote:
> Here is the php conf:
> AddHandler php5-script .php
> AddType text/html .php
> #AddType application/x-httpd-php-source .phps
On Jan 22, 2014, at 00:26, Ryan Schmidt wrote:
> On my system, when the svn:mime-type property of this file is not set, it uses the MIME type application/x-httpd-php for .php files, which causes the browser to not display it at all but rather download it.
>
> If you want it to display it unaltered, you could have the server send the MIME type text/plain.
In my httpd.conf the directives are:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Received on 2014-01-22 07:31:55 CET