Posso usare una funzione Javascript in header, per esempio:

if ($number ==1) {
header('window.open("xxx.html", "xxx")');
exit;
}