473,387 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
3 2164
Motoma
3,237 Expert 2GB
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
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
3,237 Expert 2GB
Care to post the code where you make the call as well as the context in which you call it?
Apr 7 '07 #4

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

Similar topics

18
by: Philipp Lenssen | last post by:
I have a problem doing a permanent redirect. It works only if I directly send the new location header (third line in sample below) but never in combination with sending a "301 Moved permanently"...
10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
11
by: Tom Post | last post by:
I am doing a simple php header refresh -- header('refresh: 10; url=msgs.php'); that just does a call back to my script every 10 seconds. Things work great when the page is first loaded up, but if...
6
by: John | last post by:
Hi. I am having a few header problems at the moment with a login page. I don't have my headers at the top of the page where I've learned I need to have them. However, I also know I'm supposed...
3
by: Vivek Mehta | last post by:
I want to receive XML stream generated at another URL however when I try to load the XML it errors out with one error or the other. I beleive this XML comes back with HTTP header which actually...
2
by: Annie | last post by:
hello guys, I have a header file in the form of user control (.ascx) that all my pages inherit from it. I have a textbox that i need to access it from all the pages actually i show there user...
7
by: Monty | last post by:
Something odd is happening. Scripts on several sites that collect form data, save it to a DB, then redirect the user to another page are slowing to a crawl during the redirect using the header()...
23
by: lwoods | last post by:
I am trying to pass some info to another page on my site. I set "session_start()" in page 1, assign a session variable to a value, then execute a "header('Location: ....')." But on the target...
4
by: ingibjark | last post by:
Hello all I’m securing a web service using WSE 2.0. One of the potential client’s of the web service is a Java client using Sun JWSDP 1.5. The problem is that the java client gets the...
1
by: chandra.somesh | last post by:
I generally use Response.Redirect(url,false) for redirections. Is there a size constarint on the HTTP Response Location Header ? Also Is the behavior defined if we exceed this limit? In my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.