Hi I am just a bit confused of what us the best way to reload or redirect a page in php. Usually I used header function for example
Code: Select all
header('location:schedulelist.php');
My next question is it needed to include the full url of the page for example
http://localhost/schedulelist/login.php or I can just use the page url only which is schedulelist.php.
The reason why I am asking is that I am currently testing through localhost and since the domain name will be change upon deployment, I do not want my visitors to encounter broken links in navigating my page.
Thanks