Re: Help in php
| From: | jeremy brand | Date: | Wed, 11 Oct 2000 06:15:13 +0000 |
| Subject: | Re: Help in php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19519@lists.php.net to get a copy of this message | ||
I just want to correct this error that floats around on this list all
the time. If you are going to send HTTP headers, make sure and speak
HTTP.
for example:
header('302');
header("Location: $URL");
302 may not be what you want to say, maybe you want to say 303? It is
up to you the application developer. See the HTTP spec (found at
http://www.w3.org/) for more information.
I know that this is anal, but if you are going to build an
application, you might as well do it right. (It doesn't take any more
effort).
I'm not pickin' on you Joe ;-) just being pedantic in my own right.
-jeremy
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __
> <?
>
>
> $URL = 'http://www.yahoo.com';
> header("Location: $URL");
>
>
> ?>
>
> --Joe
>
>
>
> On Wed, Oct 11, 2000 at 12:08:09AM -0600, umesh s wrote:
> > Respected sir
> > As i have started learning php i got problem
> > in redirection. One of my senior showed how
> > redirection is done in ASP.Is their that way of
> > redirection in php if so please mail me with
> > simple examples. Please do the same as quick
> > as possible sir
> >
> > thanking you umesh s
> >
> > ____________________________________________________________________
> > Get free email and a permanent address at
> > http://www.netaddress.com/?N=1
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> /*****************************\
> * Joe Stump *
> * www.Care2.com *
> * Office: 650.328.0198 *
> * Extension: 122 *
> \*****************************/
> http://www.miester.org/Joe/Stump/Joe_Stump_resume.html
>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
> N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@
> 5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)!
> ------END GEEK CODE BLOCK------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>