Re: [PHP] Friday - Return of Brain Teasers

2012-10-08 Thread Tedd Sperling
On Oct 7, 2012, at 5:05 PM, Matijn Woudt tijn...@gmail.com wrote:

 On Fri, Oct 5, 2012 at 7:43 PM, Daniel Brown danbr...@php.net wrote:
About five-and-a-half years ago, we had a brainteasers thread
 going on[1].  Last year it was briefly resurrected[2], and both times
 got some good content and dialogue going.  So I'd like to reprise the
 thread in 2012, as well.  Those of you connected to me on Facebook
 (parasane) or Twitter (@oidk) might already have seen it, but a simple
 one to get things rolling:
 
?php require ++$cowbell; ?
 
 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/
 
 
 It somehow seems the creative ones on this thread have been gone...

Or they are occupied with other things.

Cheers,

tedd


_
t...@sperling.com
http://sperling.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-07 Thread Lars Nielsen
fre, 05 10 2012 kl. 13:43 -0400, skrev Daniel Brown:
 About five-and-a-half years ago, we had a brainteasers thread
 going on[1].  Last year it was briefly resurrected[2], and both times
 got some good content and dialogue going.  So I'd like to reprise the
 thread in 2012, as well.  Those of you connected to me on Facebook
 (parasane) or Twitter (@oidk) might already have seen it, but a simple
 one to get things rolling:
 
 ?php require ++$cowbell; ?
 
 -- 
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/
 

Ah thats easy enough! You just have you includefiles in the $cowbell
array and then require the next one! ;-)

-- 
Lars Nielsen l...@lfweb.dk
LFWeb


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-07 Thread Matijn Woudt
On Fri, Oct 5, 2012 at 7:43 PM, Daniel Brown danbr...@php.net wrote:
 About five-and-a-half years ago, we had a brainteasers thread
 going on[1].  Last year it was briefly resurrected[2], and both times
 got some good content and dialogue going.  So I'd like to reprise the
 thread in 2012, as well.  Those of you connected to me on Facebook
 (parasane) or Twitter (@oidk) might already have seen it, but a simple
 one to get things rolling:

 ?php require ++$cowbell; ?

 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/


It somehow seems the creative ones on this thread have been gone...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-06 Thread Stefan Wixfort

On 06.10.2012 03:08, Tamara Temple wrote:

On Fri, 2012-10-05 at 22:50 +0200, iostream wrote:

If you want to execute some code...

I'm sure you've all heard of the new goes to operator by now, but I
hope it might be new to somebody.

$i = 10;
while ($i -- 0) { // while $i goes to 0
  echo $i .\n;
}


Okay, I haven't heard of it, and I don't get it. AFAIK, this operator
does not exist, but I don't get the trick that's being applied.




while ($i--  0)

should clearify things

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Richard S. Crawford
Christopher Walken? Is that you?

On Fri, Oct 5, 2012 at 10:43 AM, Daniel Brown danbr...@php.net wrote:

 About five-and-a-half years ago, we had a brainteasers thread
 going on[1].  Last year it was briefly resurrected[2], and both times
 got some good content and dialogue going.  So I'd like to reprise the
 thread in 2012, as well.  Those of you connected to me on Facebook
 (parasane) or Twitter (@oidk) might already have seen it, but a simple
 one to get things rolling:

 ?php require ++$cowbell; ?

 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Sláinte,
Richard S. Crawford (rich...@underpope.com)
http://www.underpope.com
Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)


RE: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Steven Staples
 Subject: [PHP] Friday - Return of Brain Teasers
 
 About five-and-a-half years ago, we had a brainteasers thread going
 on[1].  Last year it was briefly resurrected[2], and both times got some
 good content and dialogue going.  So I'd like to reprise the thread in
 2012, as well.  Those of you connected to me on Facebook
 (parasane) or Twitter (@oidk) might already have seen it, but a simple one
 to get things rolling:
 
 ?php require ++$cowbell; ?
 

Is this supposed to execute to anything?

I got this:

Warning: require(1) [function.require]: failed to open stream: No such file
or directory in C:\xampp\htdocs\cowbell.php on line 1

Fatal error: require() [function.require]: Failed opening required '1'
(include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cowbell.php on line
1


--  I do know what it means, just thought maybe there was something more
significant to it than this...  
Guess what? I got a fever. And the only prescription...is more cow bell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Jonathan Sundquist
It means we require more cowbell.

On Fri, Oct 5, 2012 at 3:34 PM, Steven Staples sstap...@mnsi.net wrote:

  Subject: [PHP] Friday - Return of Brain Teasers
 
  About five-and-a-half years ago, we had a brainteasers thread going
  on[1].  Last year it was briefly resurrected[2], and both times got some
  good content and dialogue going.  So I'd like to reprise the thread in
  2012, as well.  Those of you connected to me on Facebook
  (parasane) or Twitter (@oidk) might already have seen it, but a simple
 one
  to get things rolling:
 
  ?php require ++$cowbell; ?
 

 Is this supposed to execute to anything?

 I got this:

 Warning: require(1) [function.require]: failed to open stream: No such file
 or directory in C:\xampp\htdocs\cowbell.php on line 1

 Fatal error: require() [function.require]: Failed opening required '1'
 (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cowbell.php on line
 1


 --  I do know what it means, just thought maybe there was something more
 significant to it than this...
 Guess what? I got a fever. And the only prescription...is more cow bell


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Timmy Sjöstedt

That just sounds like a pun than anything else though.

We require new Brainteaser;

On 2012-10-05 22:36, Jonathan Sundquist wrote:

It means we require more cowbell.

On Fri, Oct 5, 2012 at 3:34 PM, Steven Staples sstap...@mnsi.net wrote:


Subject: [PHP] Friday - Return of Brain Teasers

 About five-and-a-half years ago, we had a brainteasers thread going
on[1].  Last year it was briefly resurrected[2], and both times got some
good content and dialogue going.  So I'd like to reprise the thread in
2012, as well.  Those of you connected to me on Facebook
(parasane) or Twitter (@oidk) might already have seen it, but a simple

one

to get things rolling:

 ?php require ++$cowbell; ?



Is this supposed to execute to anything?

I got this:

Warning: require(1) [function.require]: failed to open stream: No such file
or directory in C:\xampp\htdocs\cowbell.php on line 1

Fatal error: require() [function.require]: Failed opening required '1'
(include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cowbell.php on line
1


--  I do know what it means, just thought maybe there was something more
significant to it than this...
Guess what? I got a fever. And the only prescription...is more cow bell


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread iostream

If you want to execute some code...

I'm sure you've all heard of the new goes to operator by now, but I 
hope it might be new to somebody.


  $i = 10;
  while ($i -- 0) { // while $i goes to 0
echo $i .\n;
  }

On 2012-10-05 22:34, Steven Staples wrote:

Subject: [PHP] Friday - Return of Brain Teasers

 About five-and-a-half years ago, we had a brainteasers thread going
on[1].  Last year it was briefly resurrected[2], and both times got some
good content and dialogue going.  So I'd like to reprise the thread in
2012, as well.  Those of you connected to me on Facebook
(parasane) or Twitter (@oidk) might already have seen it, but a simple one
to get things rolling:

 ?php require ++$cowbell; ?



Is this supposed to execute to anything?

I got this:

Warning: require(1) [function.require]: failed to open stream: No such file
or directory in C:\xampp\htdocs\cowbell.php on line 1

Fatal error: require() [function.require]: Failed opening required '1'
(include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cowbell.php on line
1


--  I do know what it means, just thought maybe there was something more
significant to it than this...
Guess what? I got a fever. And the only prescription...is more cow bell





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Maciek Sokolewicz

On 05-10-2012 22:50, iostream wrote:

If you want to execute some code...

I'm sure you've all heard of the new goes to operator by now, but I
hope it might be new to somebody.

   $i = 10;
   while ($i -- 0) { // while $i goes to 0
 echo $i .\n;
   }



Haha, nice one :)

Also: don't toppost on this list.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Tamara Temple
On Fri, 2012-10-05 at 22:50 +0200, iostream wrote:
 If you want to execute some code...
 
 I'm sure you've all heard of the new goes to operator by now, but I 
 hope it might be new to somebody.
 
$i = 10;
while ($i -- 0) { // while $i goes to 0
  echo $i .\n;
}

Okay, I haven't heard of it, and I don't get it. AFAIK, this operator
does not exist, but I don't get the trick that's being applied.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php