I developed a website that runs perfectly on Linux, but when I try to run it on the Windows production server, the php script doesn't work. Everything that's in the code after this line doesn't do anything:
require_once __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'returner.php';
I thought that the proble could be related to the paths of the files, so I modified the code to use DIR and DIRECTORY_SEPARATOR to avoid any kind of problems with the paths. I tested if the path was working using file_exists and the file was located, but my code still does nothing when I try to run it on the Windows server.
/index.php includes /lib/returner.php
/lib/returner.php includes /lib/login.php
Code:
index.php:
...
div class="container" role="main">
<?php
require_once __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'returner.php';
echo '<div class="page-header">';
echo '<h1>' . returnSede() . '</h1>';
...
returner.php:
...
<?php
require_once __DIR__ . DIRECTORY_SEPARATOR . 'login.php';
$sede = $_POST['selectSede'];
...