php-windows Digest 29 Jul 2001 16:44:20 -0000 Issue 674

Topics (messages 8547 through 8549):

Redirection problems
        8547 by: Olafur Jakobsson
        8549 by: Hugh Bothwell

test it please
        8548 by: G Schneider

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


I have put an Apache/mySQL/linux PHP application on a WebSite/mySQL/WinNT 
box that has v 4.0.6
of PHP installed as  ISAPI.

All went well with this rather simple application, except that redirection 
by header("Location: address");
does not work. A  typical error msg is 'Warning: Cannot add header 
information - headers already sent by
(output started at  D:\webroot\forum\htdocs\php\jobb\test.php:8) in
D:\webroot\forum\htdocs\php\jobb\test.php on line 10'.

Both Netscape and IE behave similarly so it seems to be a server issue in 
not redirecting properly.

Is this a specific WebSite issue (I understand that there are some 
unresolved problems), i.e. an
incompatibility compared to Apache?

TIA for any help in getting this to work poroperly.

Regards
Olafur

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp






"Olafur Jakobsson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> does not work. A  typical error msg is 'Warning: Cannot add header
> information - headers already sent by

This is a FAQ question - once you write ANY
non-header data, no more header data can be
sent.  There are two solutions:  one is, make
sure your headers get sent first; second is, enable
output buffering (which takes care of headers
automatically).

If you're doing the first, note that your php
opener must start at the very beginning of the
file, ie the opening <?php must start at
the first character of the first line, and the
same must be true for any include'd or
require'd files.








Hi,

I've written a PHP guestbook with the slight twist of it not requiring a
database. Anyway, I would appreciate it if someone would download the source
code, and then try it out on their own server. I am asking this because I
tried it on f2s.com (a free PHP webspace provider) and it did nothing but
spout error messages - complaining that safe mode was on. But safe mode is
on in my other sites and it works fine!

Weird.

Anyway, you can download the code from this address:
http://www.webmastersdog.com/PHPapps/guestbook/guestbook.php

Please tell me if it does or does not work + plus any error messages AND
please tell me the version of PHP you are using (this was built under 4.0.6)
otherwise the information you give me will be useless. Thanks!


++++++++++++++++++++++++++++++++++++++++
http://www.webmastersdog.com
where website owners go. and talk about stuff.
++++++++++++++++++++++++++++++++++++++++




Reply via email to