Insert Code on Top of the Page not works

Hello,

I have a project where the following code should appear at the very beginning of the page:

Unfortunately, inserting it into “Edit Extra Code → </>Page Start” doesn’t work. See the images. It would also be good if this could be done more globally.

<?php session_start();
$webyep_sIncludePath = "./";
$iDepth = 0;
while (!file_exists($webyep_sIncludePath . "webyep-system")) {
	$iDepth++;
	if ($iDepth > 10) {
		error_log("webyep-system folder not found!", 0);
		echo "<html><head><title>WebYep</title></head><body><b>WebYep:</b> This page can not be displayed <br>Problem: The webyep-system folder was not found!</body></html>";
		exit;
	}
	$webyep_sIncludePath = ($webyep_sIncludePath == "./") ? ("../"):("$webyep_sIncludePath../");
}
if (file_exists("${webyep_sIncludePath}webyep-system/programm")) $webyep_sIncludePath .= "webyep-system/programm";
else $webyep_sIncludePath .= "webyep-system/program";
include("$webyep_sIncludePath/webyep.php");?>

before /

after

You can add code globally in the Site Project Settings :slight_smile:

Thanks, but:

and that is the result (index.php):

<PHP 
session_start();
$webyep_sIncludePath = "./";
$iDepth = 0;
while (!file_exists($webyep_sIncludePath . "webyep-system")) {
	$iDepth++;
	if ($iDepth > 10) {
		error_log("webyep-system folder not found!", 0);
		echo "<html class="scroll-smooth" lang="de" dir="">
 <head>
  <title>WebYep</title>
  <link rel="stylesheet" type="text/css" media="all" href="rw/styles/consolidated.css?rwcache=797456443" /> 
 </head>
 <body class="bg-reddark-600">
  <b>WebYep:</b> This page can not be displayed 
  <br />Problem: The webyep-system folder was not found!"; exit; } $webyep_sIncludePath = ($webyep_sIncludePath == "./") ? ("../"):("$webyep_sIncludePath../"); } if (file_exists("${webyep_sIncludePath}webyep-system/programm")) $webyep_sIncludePath .= "webyep-system/programm"; else $webyep_sIncludePath .= "webyep-system/program"; include("$webyep_sIncludePath/webyep.php"); ?&gt;    
  <script defer src="rw/elements/com.realmac.corepack/alpine-collapse.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine-focus.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine-intersect.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine-ui.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/smoothscroll.min.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/gsap.min.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/ScrollTrigger.min.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/gsap-effects.js?rwcache=797456443"></script> 
  <meta charset="utf-8" /> 
  <meta http-equiv="x-ua-compatible" content="ie=edge" /> ....