Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16703
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How does Ecommerce work? |
| Date | 2016-03-31 03:34 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <2309464.udoVpH2yCc@PointedEars.de> (permalink) |
| References | <5bf3406f-3ecb-41ac-bd20-206c5a9d86bb@googlegroups.com> <a5OdnY6Q2f8WTWTLnZ2dnUU7-VXNnZ2d@posted.internetamerica> <1a7b3128-2142-492b-be03-a406f1371ca5@googlegroups.com> <u6tnfbt2s980tbt24c3k41888b8cmudltt@4ax.com> |
Richard Yates wrote:
> <?php
>
$goto='https://www.google.com/search?q=internet+merchant+services&ie=utf-8&oe=utf-8';
> header("Location:$goto");exit();
The variable is ill-named (PHP >= 5.3 does have a “goto” operator) and
unnecessary, and ending a PHP script with “exit();” is equivalent to not
having written “exit();” at all.
<http://php.net/manual/en/control-structures.goto.php>
<http://php.net/manual/en/function.exit.php>
> ?>
Once again: Don’t.
<http://www.php-fig.org/psr/psr-2/#2-2-files>
--
PointedEars
Zend Certified PHP Engineer
<http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How does Ecommerce work? bit-naughty@hotmail.com - 2016-03-28 05:21 -0700
Re: How does Ecommerce work? "J.O. Aho" <user@example.net> - 2016-03-28 15:39 +0200
Re: How does Ecommerce work? Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-28 15:31 -0400
Re: How does Ecommerce work? "J.O. Aho" <user@example.net> - 2016-03-29 18:15 +0200
Re: How does Ecommerce work? Michael Vilain <mev94303y@yahoo.com> - 2016-03-29 09:34 -0700
Re: How does Ecommerce work? Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 12:50 -0400
Re: How does Ecommerce work? gordonb.yjw6m@burditt.org (Gordon Burditt) - 2016-03-28 19:47 -0500
Re: How does Ecommerce work? bit-naughty@hotmail.com - 2016-03-29 11:38 -0700
Re: How does Ecommerce work? Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-29 15:50 -0400
Re: How does Ecommerce work? gordonb.842wr@burditt.org (Gordon Burditt) - 2016-03-29 15:32 -0500
Re: How does Ecommerce work? bit-naughty@hotmail.com - 2016-04-01 11:33 -0700
Re: How does Ecommerce work? Jerry Stuckle <jstucklex@attglobal.net> - 2016-04-01 15:25 -0400
Re: How does Ecommerce work? "J.O. Aho" <user@example.net> - 2016-04-01 22:19 +0200
Re: How does Ecommerce work? Richard Yates <richard@yatesguitar.com> - 2016-03-30 08:48 -0700
Re: How does Ecommerce work? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-31 03:34 +0200
Re: How does Ecommerce work? Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-30 22:37 -0400
Re: How does Ecommerce work? Richard Yates <richard@yatesguitar.com> - 2016-03-30 21:28 -0700
Re: How does Ecommerce work? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-31 15:33 +0200
csiph-web