PDA

View Full Version : How do I redirect without front-end messages?


Jaxel
04-20-2009, 12:34 PM
I know I can use the following for redirects...

$vbulletin->url = $filename.'?do=home';
eval(print_standard_redirect('redirect_page'));

The problem is that this has a front-end. I want to make a redirect so that the person doesn't know they are redirected; I want it to be silent. How would I accomplish this?

Dismounted
04-21-2009, 09:27 AM
Use headers:
header('Location: http://www.example.com/');
exit;

Jaxel
04-23-2009, 04:39 PM
Sweet, that was exactly what I was looking for.