Entonces quiero saber si estoy en un servidor Windows, buscando por allí encontre esta forma, pero no me funciona. Sabeis porque puede ser o si hay alguna otra forma de saber si estoy en Windows:
Código PHP:
if (isset($_ENV['WINDIR'])){
$domingo[$linea] = date("j", strtotime("sunday next week", $currentTime));
}else{
$domingo[$linea] = date("j", strtotime("sunday this week", $currentTime));
}
Muchas gracias