The PHP system redirect function is used to send HTTP redirection headers to the browser. This function is used to redirect the user to a different web page when they access a certain page. For example, if you want to redirect users to the login page when they try to access a restricted page, you can use the system redirect function.
In this example, the header function is used to redirect the user to the website "https://www.example.com". The exit function is used to stop the execution of the script.
In this example, the Refresh parameter is used to redirect the user to the website "https://www.example.com" after a 5-second delay. The exit function is used to stop the execution of the script.
Package library: HTTP_Redirect, available in the HTTP package of the PEAR library.
PHP System::redirect - 30 examples found. These are the top rated real world PHP examples of System::redirect extracted from open source projects. You can rate examples to help us improve the quality of examples.