What are the security implications of using header("Location ...") versus meta-refresh for redirection in PHP?

Using header("Location ...") for redirection in PHP is generally considered more secure than using meta-refresh because it sends a HTTP header to the browser, instructing it to redirect to a new location. This method is less prone to manipulation by users and provides better control over the redirection process. On the other hand, meta-refresh relies on client-side processing and can be modified by users, potentially leading to security vulnerabilities.

<?php
// Redirect using header("Location ...")
header("Location: new_page.php");
exit;
?>