PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
We have an e-commercial web site and we should redirect our customers to a result page according to the response of the bank.
Although there is no error message, header("location:xxxx.php"); doesn't work in any browser.
Also this code works for other banks perfect without any error.
But for one bank it doesn't work without any error.
Some php.ini configuration:
display_errors:on
output_buffering:on
1. Perhaps that server doesn't support redirects.
2. Perhaps one of the files was saved in a format (eg dos) or uploaded in binary which is causing it to output data so it can't send the redirect because the header was already sent.
3. Perhaps one of the files were corrupted when uploaded.
4. Perhaps the one particular web site is using a different url scheme. (eg http://domainname.com instead of http://www.domainname.com)
i once had problems regarding with Header() function, but tanx for this forum i was able to solved it.
here's the origenal('Links') question that i throw before: viewtopic.php?t=43784
1. Perhaps that server doesn't support redirects.
2. Perhaps one of the files was saved in a format (eg dos) or uploaded in binary which is causing it to output data so it can't send the redirect because the header was already sent.
3. Perhaps one of the files were corrupted when uploaded.
4. Perhaps the one particular web site is using a different url scheme.
1.server supports redirects. Because it works for other banks.
2.All files have php extension
3.no, they are not corrupted. We have checked them.
4. url scheme http://www.zzzzzzzzzzzzzzz.com
If the headers are already sent, php would show an error. In my ini configuration display error = on
It doesn't show any error.
I met this problem once when i used FireFox and when i tested it with IE it worked fine
be careful , because you can also disable location header in IE so be sure to enable it maybe Tools -> Internet Options -> Advanced -> Enable page transition
I am trying with all browsers including(IE,Netscape,Firefox,Opera).
It works on the server side. I don't think it's about the browser.
It makes no sense that I have made the settings in my browser.
How can I tell all the customers to change the browser settings.
It makes no sense that I have made the settings in my browser.
How can I tell all the customers to change the browser settings.
Opps , as a web developer , browser is important . Maybe your website work 100% on IE but when using FF or other browsers they may work only 80-90% ( design interface , javascript , css , etc ... )
If you don't want to change your browser setting , then you can use this
as I remeber something weird happening when I tried doing something similar and the header go grumpy at me for not having things quoted right, so I did the above and it worked.
EDIT>> changed the tags before I got in trouble
Any of the ideas posted above has not solved my problem.
There is some exceptional situation here that I couldn't understand. There is no error message.
PHP is skipping header("locaciton:") line. It executes the line below (exit()). It exits and shows a white page.
Are you absolutely sure there's no errors? Have you checked the server logs?
I've run into a few situations where a header() call was genuinely being skipped. Adding a call to flush() or other things that force the headers to be output helped, that I remember.