• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue PHP script not parsed - source code piped into web page

carini

Basic Pleskian
I have a strange problem: In my index.php

PHP:
<?
require_once('../conf-site.inc');
require_once("$codedir/incl/main.lib.inc");

Where $codedir is defined in ../conf-site.inc ... in result page the content of main.lib.inc is not parsed and source code is shown instead.

There is anyone with the same problem?
 
You are using the "short opener"
Code:
<?
but have not turned short openers on in your PHP configuration. For that reason, the code is not parsed. You need to either change the opener to
Code:
<?php
or turn short openers on in the PHP configuration. As far as I remember, since PHP 5.6 short openers were disabled by default. Maybe even an earlier 5.x version.
 
Back
Top