By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,153 Members | 960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,153 IT Pros & Developers. It's quick & easy.

Header( "Location: http://www.new-url.com" );

P: 3
Hi,

I am moving some scripts from a UNIX box to a Windows box.

A data entry form calls a PHP script the updates the records from the form. After the script completes, The script redirects to anothe page. No headers have been sent, the script just does the database update.

This works on the UNIX account:
Header( "Location: http://www.new-url.com" );

It does not work on the IIS box.

The records are updated correctly in the database.

Help?
Apr 5 '07 #1
Share this Question
Share on Google+
3 Replies


Motoma
Expert 2.5K+
P: 3,235
Are you getting any messages in your error log? Try turning error reporting on:
[PHP]
<?php
error_reporting(E_ALL);
ini_set('display_errors', True);
// Rest of the PHP code
[/PHP]
It may be a problem with the capital H you used in header(). I don't know if case sensitivity is enabled in your version of PHP.
Apr 6 '07 #2

P: 3
Are you getting any messages in your error log? Try turning error reporting on:
[PHP]
<?php
error_reporting(E_ALL);
ini_set('display_errors', True);
// Rest of the PHP code
[/PHP]
It may be a problem with the capital H you used in header(). I don't know if case sensitivity is enabled in your version of PHP.
Hi,

I turned on the error reporting and there no errors. I even put in a error and it was displayed.

// return to the home page
header("location: menu_edit_form.php");

This does not work, it just remains on the php page.

gt
Apr 6 '07 #3

Motoma
Expert 2.5K+
P: 3,235
Care to post the code where you make the call as well as the context in which you call it?
Apr 7 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.