PHP header redirection not working after installing xdebug

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-05-19T13:32:15Z Indexed on 2010/05/19 13:40 UTC
Read the original article Hit count: 404

Filed under:
|
|
<?php
$url = 'http://google.com/';
header('Location: ' . $url);

The xdebug setting in php.ini is:

zend_extension=path_to_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

The above header() redirection will work as long as I remove the xdebug setting.

Anyone met this problem?

© Stack Overflow or respective owner

Related posts about php

Related posts about xdebug