Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Keith
Ash, Ben, Thanks! For my web server, I can access to: ./httpdocs ./httpsdocs all the http documents are stored inside httpdocs and SSL documents inside httpsdocs. The web root you mean here is referred to ./httpdocs and ./httpsdocs or the parent directory of them? If I put the logfile inside

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 09:28 -0700, Ben Dunlap wrote: > > Which format should I used for log file? *.log or *.txt? > > Doesn't matter to PHP -- but you do need to provide a local path, not a URL. > > > [http://domain.com/log/logfile.*] or > > No... > > > [C:\some_path\domain.com\log\logfile.*] o

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ben Dunlap
> Which format should I used for log file? *.log or *.txt? Doesn't matter to PHP -- but you do need to provide a local path, not a URL. > [http://domain.com/log/logfile.*] or No... > [C:\some_path\domain.com\log\logfile.*] or just Yes! Ben -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Stuart
2009/8/28 Martin Scotta : > On Fri, Aug 28, 2009 at 10:39 AM, Ashley Sheridan > wrote: > >> On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote: >> > Actually there aren't a safe way to make a redirect >> > >> > We have 4 alternatives (correct me if I miss anything) to do a safe >> > redirec

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Martin Scotta
On Fri, Aug 28, 2009 at 10:39 AM, Ashley Sheridan wrote: > On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote: > > Actually there aren't a safe way to make a redirect > > > > We have 4 alternatives (correct me if I miss anything) to do a safe > > redirection. > > Erm wtf?! > > The best bet

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Keith
Hi all, Yes, you are right, it was due to echo for testing purpose not been commented out prior to header(). However, there is hidden root cause too -- PHPMailer will echo invalid address to the screen. When I have tested with 1 valid email address and 1 invalid with someth...@locahost, PHPMai

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote: > Actually there aren't a safe way to make a redirect > > We have 4 alternatives (correct me if I miss anything) to do a safe > redirection. Erm wtf?! The best bet is always going with a header() redirect. The only time I've seen that

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Martin Scotta
On Fri, Aug 28, 2009 at 9:36 AM, Floyd Resler wrote: > Another solution would be to use JavaScript. In your process.php script > you could do this: > print<< >window.location.href="index.php" > > here; > > Not strictly a PHP solution but it works. > > Take care, > Floyd > > > On Aug 28

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Floyd Resler
Another solution would be to use JavaScript. In your process.php script you could do this: print<< window.location.href="index.php" here; Not strictly a PHP solution but it works. Take care, Floyd On Aug 28, 2009, at 5:34 AM, Ashley Sheridan wrote: On Fri, 2009-08-28 at 17:32 +080

[PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Keith
I have a user sign up page that collects sign up information from user with form. This form will then be submitted to another process.php page for setting up the user account and send email to the user. After the email been sent out, the user will be directed back to homepage with header("locati

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread hack988 hack988
Some Php's tigger info output to client before you set header.try this code first --- ob_start();//first line write this code <<>> header("location:index.php"); ob_end_flush(); --

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 17:32 +0800, Keith wrote: > I have a user sign up page that collects sign up information from user with > form. > This form will then be submitted to another process.php page for setting up > the user account and send email to the user. > After the email been sent out, the u