More Beginner Questions
Moderator: General Moderators
-
TheFisherman
- Forum Newbie
- Posts: 8
- Joined: Fri Nov 14, 2003 6:43 pm
- Location: Plano, Texas
More Beginner Questions
I am trying to figure out the equivalent of the ASP response.redirect. I would appreciate any help on this problem.
-
TheFisherman
- Forum Newbie
- Posts: 8
- Joined: Fri Nov 14, 2003 6:43 pm
- Location: Plano, Texas
Thanks Nay, that seems to compile correctly. I am now having a problem with the command itself. I am trying to redirect to a local page at the top of the php code, and I get the error message :
Warning: Cannot add header information - headers already sent by (output started at d:\inetpub\tanstafl.com\rgc\Login.php:9) in d:\inetpub\tanstafl.com\rgc\Login.php on line 14
How do I get him to wait on sending the HTTP headers???
Thanks again,
Warning: Cannot add header information - headers already sent by (output started at d:\inetpub\tanstafl.com\rgc\Login.php:9) in d:\inetpub\tanstafl.com\rgc\Login.php on line 14
How do I get him to wait on sending the HTTP headers???
Thanks again,
try using
edit : bech100 just a little faster then i
Code: Select all
<?php
ob_start();
/// your code here
ob_end_flush();
?>edit : bech100 just a little faster then i
-
TheFisherman
- Forum Newbie
- Posts: 8
- Joined: Fri Nov 14, 2003 6:43 pm
- Location: Plano, Texas
Thanks
Got it, thanks a million.