0

Moved a php website to a Windows server IIS. The hosting VPS server is configured for PHP. My problem, the "inc" sub-folder contains the includes. The includes are not getting written.

opening: index.php

<? include('inc/top.php') ?>

gets written in the HTML source as
<!--? include('inc/top.php'); ?-->

how to fix this?

website folder structure: c:\websites\abc.com\

 css
 inc
 js
 images
  • Yes, I just stumbled onto the answer as well. The code was moved to PHP 8 and the short tags are depreciated in that version. The person that coded the website used short tags. Thanks – Jesus Is Coming Jun 25 '21 at 02:32

0 Answers0