RE: [PHP] WML Headers

From: Date: Sun, 16 Jun 2002 22:22:04 +0000
Subject: RE: [PHP] WML Headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102433@lists.php.net to get a copy of this message
Yes, it does. The manual page for header says to use exit; to stop any further processing of the script. I know that if you leave it out, it appears not to matter, but there may be a few lines of code executing after the header() call... ---John Holmes... > -----Original Message----- > From: Al Baker [mailto:ajb732@comcast.net] > Sent: Sunday, June 16, 2002 5:30 PM > To: holmes072000@charter.net > Cc: php-general@lists.php.net > Subject: RE: [PHP] WML Headers > > Does this exit hold true for HTML pages as well? It would appear that > redirecting with an HTTP header stops the current script from being > processed... > > On Sun, 2002-06-16 at 17:46, John Holmes wrote: > > As for redirecting and still reading the file, put an exit() after the > > header call, or the redirect function call. That way the current script > > will stop processing completely. > > > > ---John Holmes... > > > > > -----Original Message----- > > > From: Al Baker [mailto:ajb732@comcast.net] > > > Sent: Sunday, June 16, 2002 4:05 PM > > > To: php-general@lists.php.net > > > Subject: [PHP] WML Headers > > > > > > Hi, > > > > > > I'm working at adding a WML interface to my current HTML based web > > > interface. > > > > > > A little background, when I want to redirect a page, such as when > > there > > > is bad user input and such, I have a function: > > > function redirect($to) > > > { > > > header("Location: $to"); > > > } > > > > > > It works well, the page is redirect there. Looking over some online > > > sites and WAP phone simulators it appears that the WML header is > > > Content-location: $to. > > > > > > However, on some browsers such as WinWap3.1 Pro, it won't redirect to > > > the supplied header, but rather just continue with that current file. > > > Also using OpenWave's SDK it will redirect in the simulator but it > > will > > > still read the rest of the file. > > > > > > Am I going about this whole redirect thing wrong, and/or does anyone > > > have some good tips on WML redirections? > > > > > > Thanks, > > > Al Baker > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#102433) next »