I have a jquery function that calls a PHP file via AJAX. Inside that PHP file I have
header('Location: http://www.google.com');
However this doesn't work, the page is not redirected and the jQuery AJAX call returns an error, no 12017, I can't find much information about this error number.
I have output buffering enabled and have tried placing the header call right at the top of my PHP file but still have no luck. Any ideas? Thanks.