header("Location: index2.php") fails on vs.php 2.8

Ok, this is a consistent error, and it's driving me NUTS because we rely heavily on redirections.

Try this: create a blank index.php file with the following: <?php header("Location: index2.php"); ?>
and create an index2.php file with only this in it: <?php echo "it works!!"; ?>

Let me know if it works for you. But it fails consistenly for me on a 32bit win XP machine in the office. BUT the latest 5.3 xampp works just fine, so I am suspecting your build of php + apache is not clean. Anyway you can include the official builds of the XAMPP platform? -- it would really help weeding out all these issues.

Thanks

Comments

    am I missing settings in php.ini?

    My php-xdebug.ini has output_buffering set to ON.

    -- Anyway, I am wasting too much time on 2.8 ; I am rolling back to 2.7 again -- this is too unstable, I can't work.

    Problem with redirects

    I'm getting the same results with v2.8 on Windows 7 and thought I was going crazy too!. Code works fine on dev and production server.

    Tried adding ob_start before redirect and ob_flush; after but still get a 404 error!

    Let me take a look at

    Let me take a look at this...

    The php.ini file is based on the standard php.ini file that comes with the PHP 5.3 distro. I'm only adding the Xdebug stuff...

    This is an XDebug issue :(

    This is an XDebug issue :(

    yep - I got more issues coming.

    Ok. Good to know it is. vs php 2.7 works just fine. Anyway to allow us to use either xdebug?

    I'd like to use vs.php 2.8 more so than 2.7, but we have to be able to switch from one php to the other. I suggest to have 2 php setup: 5.2.8 and 5.3... as we use to have php 4 and php 5, I think it would help heavy users like me stay on the 2.8 release.

    I just fixed this issue,

    I just fixed this issue, please download the latest:

    http://www.jcxsoftware.com/download.php