RE: [PHP] Redirec.t

2003-03-28 Thread John W. Holmes
03 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Redirec.t > > Yes, I agree it's a workaround, but sometimes it's required for code > readibility (and sanity! :) For example, what if I have multiple pages > in one file, with a switch-case,

Re: [PHP] Redirec.t

2003-03-28 Thread Leif K-Brooks
mes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 8:37 PM To: 'Leif K-Brooks'; Johnny Martinez Cc: '[EMAIL PROTECTED]&#x

RE: [PHP] Redirec.t

2003-03-28 Thread John W. Holmes
] > Sent: Friday, March 28, 2003 8:37 PM > To: 'Leif K-Brooks'; Johnny Martinez > Cc: '[EMAIL PROTECTED]' > Subject: RE: [PHP] Redirec.t > > Thanks! That worked! > > Johnny > > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECT

RE: [PHP] Redirec.t

2003-03-28 Thread Johnny Martinez
Thanks! That worked! Johnny -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 4:53 PM To: Johnny Martinez Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Redirec.t Try putting: ob_start(); at the top of your file (before ANY outp

Re: [PHP] Redirec.t

2003-03-28 Thread Leif K-Brooks
pt is finished. Johnny -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 3:56 PM To: Johnny Martinez Subject: Re: [PHP] Redirec.t No. You have to send header information before you output anything even- before the . On your document, you have to p

RE: [PHP] Redirec.t

2003-03-28 Thread Johnny Martinez
riday, March 28, 2003 3:56 PM To: Johnny Martinez Subject: Re: [PHP] Redirec.t No. You have to send header information before you output anything even- before the . On your document, you have to put it before what is currently line 12. On Friday 28 March 2003 03:39 pm, you wrote: > Tried tha

Re: [PHP] Redirec.t

2003-03-28 Thread Leif K-Brooks
header("Location: http://php.net/header";); Johnny Martinez wrote: Hi all, Can someone tell me the function to redirect a browser to a specific page? Johnny For example: code... code... code finished. redirect("http://www.domain.com/admin.php";); ?> -- The above message is encrypted with d

Re: [PHP] Redirec.t

2003-03-28 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 header("Location: http://www.domain.com/admin.php";); if you _really_ need to use your syntax, you could function redirect($uri) { header("Location: ".$uri); } On Friday 28 March 2003 03:28 pm, Johnny Martinez wrote: > Hi all, > Can someone tell m

[PHP] Redirec.t

2003-03-28 Thread Johnny Martinez
Hi all, Can someone tell me the function to redirect a browser to a specific page? Johnny For example: http://www.domain.com/admin.php";); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php