URL Redirect with PHP scripts
2 posts • Page 1 of 1
URL Redirect with PHP scriptsplz tell me how to redirect url with php
Re: URL Redirect with PHP scriptsIn PHP, you can redirect a URL to another by calling a simple function header(). e.g. write the following php code to redirect the user from one page to another.
This code will works fine in your PHP script if you havn't output any data to the browser yet. If you are not sure then please write the below line at the top of your php script.
This function don't output any data to the browser until the script is fully executed. If you don't use this function and have output some data event any single character, then you will get the "Headers already sent" like error from the header() function.
2 posts • Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 0 guests |
|