the header-Function should be used like this:
header('Location: ../admin.php');
And even better would be if you specified the full absolute URL like this:
header('Location: http://www.example.com/admin.php');
That's because the RFC 2616 requires it to be an absolute URI (although most browsers support relative URL's too):
Location = "Location" ":" absoluteURI
Tomas Markauskas
2009-11-17 10:49:25