• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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