Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
Thanks for tips David! I'll play with your suggestion. I've never used abstract methods, but if I'm understanding the code you posted, they look pretty useful. I may be back with questions. Appreciate the help. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread David Harkness
There's no way to bypass an overridden method using "parent", but you could add an abstract method that Child would implement. class Parent function __construct() { $this->foo = $this->getFoo(); } abstract function getFoo(); } David

Re: [PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Daniel
I hope this will get people like WordPress to get up and support mysqli out of the box. going to cause big issues if they don't. On Sat, Jun 22, 2013 at 8:59 AM, Martin Amps wrote: > I second this - great to see both finally available. Fantastic release! > > Martin Amps | CIO > www.iCrac

[PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Martin Amps
I second this - great to see both finally available. Fantastic release! Martin Amps | CIO www.iCracked.com iCracked | Redwood City, CA On Jun 21, 2013, at 2:01 PM, Julian wrote: > Awesome work and the new design for the php.net website is also nice ;) > > Am 20.06.2013, 23:22 Uhr, schrieb Juli

Re: [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Julian
Awesome work and the new design for the php.net website is also nice ;) Am 20.06.2013, 23:22 Uhr, schrieb Julien Pauli : Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate re

[PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
On Fri, Jun 21, 2013 at 12:54 PM, Micky Hulse wrote: > 2. Is there a way for me to pass $foo to the parent class, from the > child, without having to ferry that variable through the abstract > class? I should mention, I'm working on some code where I don't have the ability to modify the "parent"

[PHP] PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
Example/working code here: Couple questions: 1. Is there anything wrong with the way I'm using the abstract class? If so, how could I improve the logic/setup? 2. Is there a way for me to pass $foo to the parent class, from the child, without having to fe

[PHP] Re: Newbie form question

2013-06-21 Thread Jim Giner
On 6/21/2013 10:09 AM, Karl-Arne Gjersøyen wrote: Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submi

[PHP] Newbie form question

2013-06-21 Thread Karl-Arne Gjersøyen
Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submitted data it only take the very last row in the whil

Re: [PHP] Re: [PHP-DEV] PHP 5.5.0 final has been released!

2013-06-21 Thread Ravi Gehlot
Awesome! On Thu, Jun 20, 2013 at 11:14 PM, Marco Pivetta wrote: > Well done! Congratulations! > On 20 Jun 2013 23:23, "Julien Pauli" wrote: > > > Hello! > > > > The PHP Development Team would like to announce the immediate release of > > PHP 5.5.0. This release includes a large number of new f

Re: [PHP] A Strange Problem

2013-06-21 Thread tamouse mailing lists
On Jun 20, 2013 7:20 PM, "Tedd Sperling" wrote: > > On Jun 20, 2013, at 7:12 PM, Stuart Dallas wrote: > > Whatever the reason for this, I'd recommend you always specify a path relative to the current script. > > > > In PHP 5.3+: > > > > $fcontents = file(__DIR__.'/docs/admin-email.txt'); > > > >