Hello. The problem is that the site works fine on LAN, and for some reason on the host it gives the following Displays a partial file code. Whether this is due to the incorrect indication of links, I do not know. After all, the page sees files directly related to it. Do not throw tomatoes, please)

<?session_start(); require_once 'php/connect.php'; $id= $_SESSION["id"]; echo $id; $user=R::findAll('usertable','`users_id`=? ',[$id]); if (count($user)==0){ echo ("<span class='lead text-center vertical_al mark'>YOU HAVEN`T TODO LISTS!</span><br/>"); } else { foreach ($user as $users) { echo "<table > <thead> <tr'> <th'><i ><i/></th> <th ><input type='text'>".$users->title."</p>..... 
  • one
    I can advise you not to use <? , and use <?php . Abbreviated tags may not be included on the host - ArchDemon
  • It helped. God, how nice when there are such people)) thank you very much !! - Victoria Shevchenko

1 answer 1

In php.ini, find the line short_open_tag and put the value On on it. It should be:

 short_open_tag=On 

Where is the php.ini file in your virtual machine ask google.