No, funziona anche su Windows. Che errore ti dà?

Potresti usare anche file_get_contents().