Re: header (Location: ) not working on web server



On Feb 7, 5:35 pm, "php newbie" <arpit...@xxxxxxxxx> wrote:
Hello Erwin, I did not understand your response. Its the same php
page, why is it showing the warning on one server and not on another
and why is the same page working on my local machine and not working
when I upload it to the server.
I would really appreciate your help, I am a newbie to php and not
aware of any configuration settings that I might need to change.
Thanks

Redirecting with the header functions works only if no output has been
produced before this command. If you are using the same files on both
servers it could be that the settings of those servers are different.

E.g. If your first server is configured to show no warnings (e.g. when
a variable is used without being defined before) and the second server
is configured to show those warnings, it will work on the first server
but will not on the second.

In this case a workaround would be to use the same configurations, or
to clear up your code in order to produce no warnings.

Good luck
Martin

------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at


.



Relevant Pages

  • Re: Event Warning 40961 LSASRV
    ... Also, the netlogon service is not running on either server, yet I'm still ... getting warnings about authentication failure to the providers nameserver. ... Also, after making the registry entry previously stated, DNS services were ...
    (microsoft.public.windows.server.networking)
  • Re: False Alert - AD database restored by unsupported procedure.
    ... DNS entries for this DC cannot be verified right now on DNS server ... the DNS and SPN warnings. ... Run dcdiag, netdiag and repadmin in verbose mode. ... And I alway restart the net logon service when I ...
    (microsoft.public.windows.server.active_directory)
  • Re: False Alert - AD database restored by unsupported procedure.
    ... the DNS and SPN warnings. ... If you don't have the support tools installed, install them from your server ... Run dcdiag, netdiag and repadmin in verbose mode. ... And I alway restart the net logon service when I ...
    (microsoft.public.windows.server.active_directory)
  • Re: Lost data on socket - Can we start over politely?
    ... I also implemented strict and warnings. ... > buffering issue. ... > I've switched to using only buffered reads and writes on the socket fd's, ... Instead please try this server (some quickly reduced code from a bigger ...
    (comp.lang.perl.misc)
  • RE: Windows Server 2003 SP1 MSDTC Errors After DCPROMO
    ... > After promoting a Windows Server 2003 server with SP1 installed to a DC, ... > MS DTC could not correctly process a DC Promotion/Demotion event. ... > these warnings being logged. ...
    (microsoft.public.windows.server.general)