• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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