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

2013-06-21 Thread Micky Hulse
Example/working code here: https://gist.github.com/mhulse/5833826 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

Re: [PHP] php5-fpm segfault

2011-09-30 Thread Laruence
Hi : could you file a bug at https://bugs.php.net/ this is the proper way to report a bug :) thanks -- Laruence  Xinchen Hui http://www.laruence.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php5-fpm segfault

2011-09-30 Thread Александр Гончаров
You think this is PHP's bug? I'm not sure. Because PHP installed not latest version and yesterday i tune memory_limit setting to 256M (was -1) and no segfaults registered since that moment. I think, bad designed script allocate too much memory and php-fpm worker become mad and kill himself. But

[PHP] PHP5 cgi Suexec htaccess rewrite issue

2011-09-29 Thread Shaun Morrow
I am running a server with cPanel on and want to have php run as a cgi with Suexec enabled I cannot seem to rectify an issue, when I set the handler to cgi, my rewrite rules on one of my sites stop working Sample url: http://examplesite.com/ad/123-abcde/ The rewrite rule for this is below;

Re: [PHP] PHP5 cgi Suexec htaccess rewrite issue

2011-09-29 Thread Tommy Pham
On Thu, Sep 29, 2011 at 5:43 AM, Shaun Morrow morrow.sh...@gmail.comwrote: I am running a server with cPanel on and want to have php run as a cgi with Suexec enabled I cannot seem to rectify an issue, when I set the handler to cgi, my rewrite rules on one of my sites stop working Sample

[PHP] php5-fpm segfault

2011-09-28 Thread Александр Гончаров
Hello. I'm getting problem. OS: Ububtu Server 2.6.38-8-server PHP: PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch Work over fastcgi (fpm) with cherokee web server. PHP fall often with such messages in syslog: Sep 28 11:01:25 userver kernel: [278665.292418] php5-fpm[31892]: segfault at 80001000321 ip

[PHP] php5 - website development - what next

2010-10-08 Thread Rakesh Mishra
Hi All, I am PHP 4 PHP 5 developer for last 6 yrs. Last year also got Zend certification. Since now I have work on different CMS, Social Networking, telecome , horse racing domains. But now I am little bored with developing website. What other things I can do with PHP ? Even I believe my

Re: [PHP] php5 - website development - what next

2010-10-08 Thread Daniel P. Brown
On Fri, Oct 8, 2010 at 09:53, Rakesh Mishra rakesh.mis...@gmail.com wrote: Even I believe my knowledge, interest, market value  with PHP 5 is getting saturated. Do you guys suggest me what other thing I can learn or work which help me to keep my lust for PHP alive and also boost my career.

Re: [PHP] php5 - website development - what next

2010-10-08 Thread 惠新宸
On 10/08/2010 22:06, 惠新宸 wrote: test, i can't send mail to lists? thanks On 10/08/2010 22:02, 惠新宸 wrote: Hi: 1. you can be a Software Architect 2. you can abstract common requirements, developed php extension. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] php5 - website development - what next

2010-10-08 Thread Paul M Foster
On Fri, Oct 08, 2010 at 07:23:59PM +0530, Rakesh Mishra wrote: Hi All, I am PHP 4 PHP 5 developer for last 6 yrs. Last year also got Zend certification. Since now I have work on different CMS, Social Networking, telecome , horse racing domains. But now I am little bored with

Re: [PHP] php5 - website development - what next

2010-10-08 Thread Richard Quadling
On 8 October 2010 14:53, Rakesh Mishra rakesh.mis...@gmail.com wrote: Hi All, I  am PHP 4 PHP 5 developer for last 6 yrs. Last year  also got Zend certification. Since now I have work on different CMS, Social Networking, telecome , horse racing domains. But now I am little bored with

[PHP] PHP5+APACHE 2.2 + Windows 2003 production server

2009-08-26 Thread Andrioli Darvin
Hi all PHP manual state We do not recommend using a threaded MPM in production with Apache 2. Use the prefork MPM instead, or use Apache 1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM ( http://www.php.net/manual/en/install.windows.apache2.php ) From

[PHP] PHP5 SOAP...

2009-06-16 Thread Russell Jones
I'm working on a project using SOAP and WS-Security in which I am failing miserably. Is there a way to inspect the actual XML, header, etc. that is actually being sent. I feel like I am constructing the call correctly, and I know exactly what needs to be sent, but I dont know how to see exactly

RE: [PHP] PHP5 SOAP...

2009-06-16 Thread bruce
Of Russell Jones Sent: Tuesday, June 16, 2009 8:22 AM To: PHP General Subject: [PHP] PHP5 SOAP... I'm working on a project using SOAP and WS-Security in which I am failing miserably. Is there a way to inspect the actual XML, header, etc. that is actually being sent. I feel like I am constructing

Re: [PHP] PHP5 SOAP...

2009-06-16 Thread Tom Rogers
Hi, Wednesday, June 17, 2009, 1:21:47 AM, you wrote: RJ I'm working on a project using SOAP and WS-Security in which I am failing RJ miserably. RJ Is there a way to inspect the actual XML, header, etc. that is actually RJ being sent. I feel like I am constructing the call correctly, and I know

[PHP] PHP5 based Web-Chat?

2009-05-21 Thread Michelle Konzack
Hello, I like to install a forum for my customers and additional a PHP5 based Web-Chat system with publich and private chatrooms. What can you recommend? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant

[PHP] php5-mhash disabled...

2009-04-02 Thread Anders Norrbring
I just saw that mhash is disabled in the spec file for php5 if SUSE version is 11.0 or higher. Simple question, does it do any harm? I know it's been deprecated in favor for hash, but I have quite a few apps using mhash still, so if it doesn't do any harm I thought I'd continue using it until all

Re: [PHP] php5-mhash disabled...

2009-04-02 Thread Chris
Anders Norrbring wrote: I just saw that mhash is disabled in the spec file for php5 if SUSE version is 11.0 or higher. Simple question, does it do any harm? If they decided to do that it's best to ask suse (or on the opensuse lists if you're using that flavour). It may just be because it's

[PHP] PHP5 - SOAP extension and WSDL generation

2009-02-22 Thread Yannick Warnier
Hi there, I'm trying to find out how to generate a WSDL with the functions I am providing as web services, and I'm finding various posts on the net that say it's not possible with the SOAP extension built in PHP5. At the same time, I find that http://www.php.net/manual/en/soap.constants.php

[PHP] php5 with apache 1.x - white page

2009-01-17 Thread Merlin Morgenstern
Hi there, after strugling a while with the installation of php5 on an older suse system with mysql 3.x and apache 1.x I got it compiled and installed. Apache starts and there are processes running, even the access log shows access to it. Response is 500 (internal error). The page itself

[PHP] PHP5 DOM Problem

2008-12-05 Thread Craig Whitmore
Hi there. I don't kno id this is the correct place to post but... I am using the PHP5 DOM to make up RSS Feeds .. A Problem I have is I want to make this up for itunes.. ?xml version=1.0 encoding=UTF-8? rss version=2.00 xmlns:itunes=http://www.itunes.com/dtds/podcast-1.0.dtd; etc.. I

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: Hello! Seems that PHP gets more and more object oriented, which is good. I am now running a course in PHP, using PHP 5, where we are going to use the *DOM* interface. I am trying to teach them good OO practices, meaning that

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: Hello! Seems that PHP gets more and more object oriented, which is good. I am now running a course in PHP, using PHP 5, where we are going to

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
On Fri, Apr 18, 2008 at 10:25:29AM -0600, Nathan Nobbe wrote: On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: Hello! Seems that PHP gets more and more object oriented, which is good. I

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Jim Lucas
Nick Stinemates wrote: On Fri, Apr 18, 2008 at 10:25:29AM -0600, Nathan Nobbe wrote: On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: Hello! Seems that PHP gets more and more object oriented, which

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
Data Hiding IS Encapsulation. But, you have to agree, ?php class Lol { private $bar; public function getBar() { return $bar } public function setBar($bar) { $this-bar = $bar} } ? Is no different than: ?php class Lol { public $bar; } ? Here's a more thought out argument from

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 11:21 AM, Nick Stinemates [EMAIL PROTECTED] wrote: On Fri, Apr 18, 2008 at 10:25:29AM -0600, Nathan Nobbe wrote: On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote:

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 11:50 AM, Nick Stinemates [EMAIL PROTECTED] wrote: That's a relatively narrow minded response to my point, since I gave a pretty concrete example of exactly what I meant, no, its a very valid criticism of your flawed example. you supply a definition of encapsulation,

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Jim Lucas
Nick Stinemates wrote: Data Hiding IS Encapsulation. But, you have to agree, ?php class Lol { private $bar; public function getBar() { return $bar } public function setBar($bar) { $this-bar = $bar} } ? Is no different than: ?php class Lol { public $bar; } ? Here's a more thought out argument

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Robert Cummings
On Fri, 2008-04-18 at 11:50 -0700, Jim Lucas wrote: Nick Stinemates wrote: Data Hiding IS Encapsulation. But, you have to agree, ?php class Lol { private $bar; public function getBar() { return $bar } public function setBar($bar) { $this-bar = $bar} } ? Is no different

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 12:50 PM, Jim Lucas [EMAIL PROTECTED] wrote: Let me quote, you said this: Is no different than You are wrong, in fact it IS different. Having your own custom methods to get or set data allows you to have more control over what data is injected into your object.

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 1:02 PM, Robert Cummings [EMAIL PROTECTED] wrote: What he means is don't ask for the data literally (by property name) ask for it via a method. This allows wrapping the data in work. This is a moot issue in PHP since PHP allows trapping the property accessor. i dont

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Robert Cummings
On Fri, 2008-04-18 at 13:17 -0600, Nathan Nobbe wrote: On Fri, Apr 18, 2008 at 1:02 PM, Robert Cummings [EMAIL PROTECTED] wrote: What he means is don't ask for the data literally (by property name) ask for it via a method. This allows wrapping the data in work. This is a moot issue in

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 1:42 PM, Robert Cummings [EMAIL PROTECTED] wrote: Nope, the point is moot. If I've made my properties publicly accessible, now, due to the ability to trap via __get() or __set(), I can remove them and handle them. Thus, I can retrospectively change the semantics

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Robert Cummings
On Fri, 2008-04-18 at 13:54 -0600, Nathan Nobbe wrote: On Fri, Apr 18, 2008 at 1:42 PM, Robert Cummings [EMAIL PROTECTED] wrote: Nope, the point is moot. If I've made my properties publicly accessible, now, due to the ability to trap via __get() or __set(), I can remove them and handle

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 2:28 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2008-04-18 at 13:54 -0600, Nathan Nobbe wrote: On Fri, Apr 18, 2008 at 1:42 PM, Robert Cummings [EMAIL PROTECTED] wrote: Nope, the point is moot. If I've made my properties publicly accessible, now,

[PHP] PHP5 and the DOM model

2008-04-17 Thread Michael Preminger
Hello! Seems that PHP gets more and more object oriented, which is good. I am now running a course in PHP, using PHP 5, where we are going to use the *DOM* interface. I am trying to teach them good OO practices, meaning that we insistently hide properties and expose them as get or set methods.

[PHP] PHP5 strtotime

2008-03-10 Thread Samuel Marshall
I use PayPal as my ecommerce solution and I have a PHP script that captures variables posted from PayPal to populate my database. The time variable string is sent in the following format: HH:MM:SS DD Mmm YY, PST. The script worked fine but since I upgraded to PHP5 the dates inputted into my

Re: [PHP] PHP5 strtotime

2008-03-10 Thread Larry Garfield
On Monday 10 March 2008, Samuel Marshall wrote: I use PayPal as my ecommerce solution and I have a PHP script that captures variables posted from PayPal to populate my database. The time variable string is sent in the following format: HH:MM:SS DD Mmm YY, PST. The script worked fine but

[PHP] PHP5 and XSLTProcessor: disable validation

2008-02-03 Thread Siegfried Gipp
Hi, i'm currently learning php by implementing a blog system. This uses xsl for transformation to (x)html. It is working so far, but it is slow. As far as i can see the XSLTProcessor is doing a validation. Doing the same transformation with xsltproc (the command line tool for libxslt) takes

Re: [PHP] PHP5 Speed Issues

2008-01-01 Thread Arvids Godjuks
Hi everyone! Generaly author of the first e-mail is right. Ofcource, crawling over the code and getting out of it a few milliseconds off doesn't make it worth, but you can learn what is good and what is bad and write your code correctly from the start. Why not to use foreach ($data as $value) if

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Richard Lynch
On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit classes, I hope I use the right word. I mean the class sub_class extends main_class notation. As well I figured out, that I in most cases should references in

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Michael McGlothlin
Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit classes, I hope I use the right word. I mean the class sub_class extends main_class notation. As well I figured out, that I in most cases

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Nathan Nobbe
On Dec 31, 2007 3:37 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit classes, I hope I use the right word. I mean the class

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Michael McGlothlin
Nathan Nobbe wrote: On Dec 31, 2007 3:37 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Nathan Nobbe
On Dec 31, 2007 3:47 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: On Dec 31, 2007 3:37 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi

[PHP] PHP5 Speed Issues

2007-12-22 Thread Sascha Braun
Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit classes, I hope I use the right word. I mean the class sub_class extends main_class notation. As well I figured out, that I in most cases should references in foreach loops. like foreach($array as $key = $value) { } Lots

Re: [PHP] php5 - possible bug discovered

2007-10-09 Thread David Restall - System Administrator
Hi Robert, Stut List Thanks for your replies which arrived after I had gone to bed |-Z Robert :- In PHP5 objects are no longer copied when assigned. Instead the object's handle is assigned (similar to a reference but not quite). So the behaviour is as expected. Stut :- I think I have

Re: [PHP] php5 - possible bug discovered

2007-10-09 Thread Stut
David Restall - System Administrator wrote: My main obesrvation is that I'm glad that I decided to revisit all my old PHP4 stuff and rewrite or clean it up. I have hundreds of $Working_Class = $Under_Class; lines in my code as well as $Upper_Class = $Aristocracy; lines too. I think the

[PHP] PHP5 under IIS6

2007-10-08 Thread Alberto García Gómez
Hi fellows: I'm trying to mount PHP5 ( the last stable version from php.net) under a IIS6 (win2k3 SP2), and when I run the .msi and it finish it said that is not possible the configure httpd.conf, which is a very big mistake 'cause I'm specify that I use IIS6. After that I try making a

Re: [PHP] PHP5 under IIS6

2007-10-08 Thread Carlton Whitehead
sure the php5isapi.dll is mapped to the .php extension. Regards, Carlton Whitehead - Original Message - From: Alberto García Gómez [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, October 8, 2007 9:57:42 AM (GMT-0500) America/New_York Subject: [PHP] PHP5 under IIS6 Hi fellows

[PHP] php5 - possible bug discovered

2007-10-08 Thread David Restall - System Administrator
Hi, I think I have discovered a bug in php5. If I haven't, I've discovered a bug in the documentation or a bug in my brain. php -v :- PHP 5.2.3 (cli) (built: Jun 26 2007 15:38:48) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies I've

Re: [PHP] php5 - possible bug discovered

2007-10-08 Thread Robert Cummings
In PHP5 objects are no longer copied when assigned. Instead the object's handle is assigned (similar to a reference but not quite). So the behaviour is as expected. Cheers, Rob. On Mon, 2007-10-08 at 21:42 +0100, David Restall - System Administrator wrote: Hi, I think I have discovered a

Re: [PHP] php5 - possible bug discovered

2007-10-08 Thread Stut
David Restall - System Administrator wrote: I think I have discovered a bug in php5. If I haven't, I've discovered a bug in the documentation or a bug in my brain. Start here: http://php.net/language.oop5.cloning -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-07 Thread Roman
On Thu, 06 Sep 2007 15:57:57 +0300, Tijnema [EMAIL PROTECTED] wrote: On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote: I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish

[PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Roman Neumüller
I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish translation files of such opensource software usually use gettext and .po files for i18n and are always a bit behind the

Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Tijnema
On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote: I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish translation files of such opensource software usually use gettext and .po

Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Dan Shirah
Now that's service! On 9/6/07, Tijnema [EMAIL PROTECTED] wrote: On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote: I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish

Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Roman
On Thu, 06 Sep 2007 15:57:57 +0300, Tijnema [EMAIL PROTECTED] wrote: On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote: I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish

Re: [PHP] php5: capital I letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Eric Butera
On 9/6/07, Tijnema [EMAIL PROTECTED] wrote: On 9/6/07, Roman Neumüller [EMAIL PROTECTED] wrote: I'm a german web-designer living in Turkey. Sometimes I use opensource software like gallery2 or WP to have customers have some nice web albums or blog. The turkish translation files of such

[PHP] php5 as universal binary (Mac OsX)

2007-07-25 Thread Chrisitan Speich
-I$PREFIX/include export SOFLAGS=-L$PREFIX/lib CFLAGS=$CFLAGS -arch i386 -arch ppc ./configure --prefix=$PREFIX --program-suffix=-5.2.3 --libdir=$PREFIX/lib/php/php5 --includedir= $PREFIX/include/php/php5 --with-apxs2=$PREFIX/bin/apxs --with-config-file-path=$SYSCONFDIR --with-mysql=$PREFIX

[PHP] PHP5 objects access/instantiation model

2007-07-11 Thread Steve Perkins
Hi, new to PHP5 and I have a question about the object model. I want to be able to create a class which is allows abstraction from specifics. So for one example, imagine a generic database connection wrapper which can have multiple drivers depending on the database used. Some of the

[PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Steve Perkins
OK, so that came out fairly illegible. Try again: Hi, new to PHP5 (and the forums evidently !) and I have a question about the object model. I want to be able to create a class which is allows abstraction from specifics. So for one example, imagine a generic database connection wrapper which can

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 16:46 +0100, Steve Perkins wrote: I guess there are lots of workaround ways. I could write lots of middleman code in generic and use things like __set and __get etc but its lots of extra overhead. I also know I could use extends but that makes the code the wrong way

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Nathan Nobbe
I also don't really get the idea of interface and abstract classes ? They don't seem to be any practical use ? Maybe that's me ? Anyway, not really relevant to this post ... there is a lot of usefulness in these constructs; look into design patterns. also, there are code libraries already

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 12:07 -0400, Nathan Nobbe wrote: I also don't really get the idea of interface and abstract classes ? They don't seem to be any practical use ? Maybe that's me ? Anyway, not really relevant to this post ... there is a lot of usefulness in these constructs; look into

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Jochem Maas
some ideas about class design: 1. properties should normally (read almost always) be private. 2. the apps interface to the DB [connection] is via the 'generic' class, the app should have to know nothing about the drive object and should have no direct access to it. 3. use an interface definition

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Nathan Nobbe
Robert, I looked at your code in InterJinn a couple of times; i havent gone over all of it mind you but it looks pretty sweet. have you had a look at any of the other frameworks i mentioned earlier in this thread? ez components, onPHP, and now there is a new one ive found (in recent thread)

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 12:50 -0400, Nathan Nobbe wrote: Robert, I looked at your code in InterJinn a couple of times; i havent gone over all of it mind you but it looks pretty sweet. It's very different in many respects from other styles of coding. It's an MVC approach for the most part but

Re: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Richard Lynch
You probably ought to have: class mysql_driver extends generic_driver { } Seems like that would be the most reasonable OOP model, imho. That said, I suspect that if you do something like: $driver = $this-driver; You then may be able to access the driver-specific data using $driver-propl;

RE: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Steve Perkins
[mailto:[EMAIL PROTECTED] Sent: 11 July 2007 21:29 To: Steve Perkins Cc: php-general@lists.php.net Subject: Re: [PHP] PHP5 objects access/instantiation model (correction) You probably ought to have: class mysql_driver extends generic_driver { } Seems like that would be the most reasonable OOP

Re: [PHP] PHP5 TUTORIAL

2007-06-27 Thread Yashesh Bhatia
hello, other interesting articles to give a bird's eye view of new features for php5 http://www.onlamp.com/pub/a/php/2004/07/15/UpgradePHP5.html http://devzone.zend.com/node/view/id/1714 http://www.devshed.com/c/a/PHP/Whats-New-in-PHP-5/ hth. yashesh bhatia. On 6/26/07, Preethi [EMAIL

[PHP] PHP5 TUTORIAL

2007-06-26 Thread Preethi
BlankHi, Need to have a kick start on PHP5. Kindly suggest me the good online tutorial for PHP5. Am already working on php4. Need to migrate from php4 to php5. Regards, Preethi. Extn No: 4099 Some of the greatest science comes from those unaware of established rules and theories.

Re: [PHP] PHP5 TUTORIAL

2007-06-26 Thread php-ml
Hi Preethi Kindly suggest me the good online tutorial for PHP5. Am already working on php4. Need to migrate from php4 to php5. i think this is very important for OOP: http://www.php.net/manual/en/language.oop5.php and this one: http://www.php.net/manual/en/language.exceptions.php

Re: [PHP] PHP5 TUTORIAL

2007-06-26 Thread Nathan Nobbe
if you want to spend a little i would recommend this book from php|arch http://www.phparch.com/shop_product.php?itemid=135 -nathan On 6/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Preethi Kindly suggest me the good online tutorial for PHP5. Am already working on php4. Need to

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Larry Garfield
On Saturday 09 June 2007, Robert Cummings wrote: On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost EVERYWHERE. Yep, it is. PHP 4 is trying to eat your brains.

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Tijnema
On 6/10/07, Larry Garfield [EMAIL PROTECTED] wrote: On Saturday 09 June 2007, Robert Cummings wrote: On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Robert Cummings
On Sun, 2007-06-10 at 11:01 -0500, Larry Garfield wrote: On Saturday 09 June 2007, Robert Cummings wrote: On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread tedd
At 10:05 PM -0400 6/9/07, Robert Cummings wrote: On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost EVERYWHERE. Cheers, Rob. Rob: You raise an excellent and

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Larry Garfield
On Sunday 10 June 2007, tedd wrote: At 10:05 PM -0400 6/9/07, Robert Cummings wrote: On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost EVERYWHERE. Cheers,

[PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread elk dolk
Hi all, After designing and testing my web pages in PHP 5.2.1 I learned that our web server has PHP 4.4.1 and I have to rollback to version 4 ! . There is no OO implementation like classes or objects in my scripts but every page has some queries the question is : will my scripts

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 11:59 -0700, elk dolk wrote: Hi all, After designing and testing my web pages in PHP 5.2.1 I learned that our web server has PHP 4.4.1 and I have to rollback to version 4 ! . There is no OO implementation like classes or objects in my scripts but every

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Richard Lynch
On Sat, June 9, 2007 1:59 pm, elk dolk wrote: After designing and testing my web pages in PHP 5.2.1 I learned that our web server has PHP 4.4.1 and I have to rollback to version 4 ! . There is no OO implementation like classes or objects in my scripts but every page has some

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Tijnema
On 6/9/07, elk dolk [EMAIL PROTECTED] wrote: Hi all, After designing and testing my web pages in PHP 5.2.1 I learned that our web server has PHP 4.4.1 and I have to rollback to version 4 ! . There is no OO implementation like classes or objects in my scripts but every page has

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread tedd
At 3:27 PM -0400 6/9/07, Robert Cummings wrote: On Sat, 2007-06-09 at 11:59 -0700, elk dolk wrote: Hi all, After designing and testing my web pages in PHP 5.2.1 I learned that our web server has PHP 4.4.1 and I have to rollback to version 4 ! . There is no OO implementation

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Larry Garfield
You should get a new server that supports PHP 5.2.1. PHP 4 is dead. It hasn't had a non-security/bug release in years. PHP 5 is 3 years old. The one and only reason to care about PHP 4 at this point is if you're writing something that has to run on any possible cheap shared web host, and

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 18:10 -0400, tedd wrote: At 3:27 PM -0400 6/9/07, Robert Cummings wrote: On Sat, 2007-06-09 at 11:59 -0700, elk dolk wrote: Hi all, After designing and testing my web pages in PHP 5.2.1 I learned that our web server has PHP 4.4.1 and I have to rollback

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost EVERYWHERE. Cheers, Rob. -- .. | InterJinn Application

Re: [PHP] PHP5 oop question...

2007-05-28 Thread Stut
Andrei wrote: Hi list, I have a class which I use to parse simple bbcode inside some comments. I noticed on PHP5 that scope of preg_replace function is changed when function is called inside a class. To the point: [CODE] class PHS_editor { ... function parse_content( $str

Re: [PHP] PHP5 oop question...

2007-05-28 Thread Andrei
Stut wrote: Andrei wrote: Hi list, I have a class which I use to parse simple bbcode inside some comments. I noticed on PHP5 that scope of preg_replace function is changed when function is called inside a class. To the point: [CODE] class PHS_editor { ...

Re: [PHP] php5 cert

2007-05-21 Thread Richard Lynch
On Fri, May 18, 2007 4:45 pm, Greg Donald wrote: Anyone wanna share their insights into the php5 cert test? The php4 test was pretty simple for me, but that was a couple of years ago. It seems there's quite a bit of new material being covered on the php5 version. I figure with the same

Re: [PHP] php5 cert

2007-05-21 Thread Richard Lynch
On Sun, May 20, 2007 10:14 am, Danial Rahmanzadeh wrote: are volcan exams really harder than actual php5 exam as phparch asserted? I'm pretty sure after seeing Star Trek: Voyage Home, that Vulcan exams are MUCH harder than the PHP 5 exam. -- Some people have a gift link here. Know what I

[PHP] php5 cert

2007-05-20 Thread Danial Rahmanzadeh
are volcan exams really harder than actual php5 exam as phparch asserted?

Re: [PHP] php5 cert

2007-05-20 Thread Larry Garfield
Actually I found the real exam harder than the test exam. It may have just been the question set I ended up with, but it was a lot more nitpicky on details that I rarely use in my work. On Sunday 20 May 2007, Danial Rahmanzadeh wrote: are volcan exams really harder than actual php5 exam as

Re: [PHP] php5 cert

2007-05-19 Thread Kevin Waterson
This one time, at band camp, Greg Donald [EMAIL PROTECTED] wrote: Anyone wanna share their insights into the php5 cert test? As worthless as the php4 cert. Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. --

Re: [PHP] php5 cert

2007-05-19 Thread Greg Donald
On 5/19/07, Kevin Waterson [EMAIL PROTECTED] wrote: As worthless as the php4 cert. Mine has been very valuable to me, lots more job interviews and freelance work compared to before I got it. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP5 Static functions called through __call() that don't exist... yet

2007-05-18 Thread Jared Farrish
Hi all, I am building an assertType object using static functions. What I want to keep away from is the following: code public static function assertString($para){ return $answer; }; public static function assertBool($para){ return $answer; }; ... public static function

[PHP] php5 cert

2007-05-18 Thread Greg Donald
Anyone wanna share their insights into the php5 cert test? The php4 test was pretty simple for me, but that was a couple of years ago. It seems there's quite a bit of new material being covered on the php5 version. I figure with the same number of questions, things had to get more general if

[PHP] php5 include() problem

2007-05-13 Thread Al
I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4. My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server configuration [which may have changed during the upgrade] issue.

Re: [PHP] php5 include() problem

2007-05-13 Thread Tijnema !
On 5/13/07, Al [EMAIL PROTECTED] wrote: I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4. My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server configuration [which may

  1   2   3   4   5   6   >