Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16708

Re: How does Ecommerce work?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: How does Ecommerce work?
Date 2016-03-31 15:33 +0200
Organization PointedEars Software (PES)
Message-ID <2665919.TXimuBEKed@PointedEars.de> (permalink)
References (1 earlier) <a5OdnY6Q2f8WTWTLnZ2dnUU7-VXNnZ2d@posted.internetamerica> <1a7b3128-2142-492b-be03-a406f1371ca5@googlegroups.com> <u6tnfbt2s980tbt24c3k41888b8cmudltt@4ax.com> <2309464.udoVpH2yCc@PointedEars.de> <2v8pfbtc3k7e8ae24pnt3r4odgh9dp29tc@4ax.com>

Show all headers | View raw


Richard Yates wrote:

> On Thu, 31 Mar 2016 03:34:12 +0200, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> wrote:
>>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>
> 
> Unhhh...you do realize that it was a joke, right?

Sort of, yes.  I did understand the “STFW” part.
 
> If I had not defined $goto in one line and used it in the second, it
> would not have been "a couple lines of php code" like he asked for,
> (You know, so it would be a joke?)

I did not understand your joke *that* way.  They did refer to “Payment 
processors provide some sort of program interface for your customers to buy 
stuff” with “this”, and that is not what your URI, in the “couple lines”, 
refers to.
 
> Perhaps you can "include" this line in your personal <head> script:
> header("Location:http://www.wikihow.com/Have-a-Sense-of-Humor");exit();

Not necessary :)  (You know that <head> has nothing to do with header(), 
yes?)

-- 
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 | NextPrevious in thread | Find similar | Unroll thread


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