Re: [PHP] What is the name of the pattern that will ...

2013-06-14 Thread Richard Quadling
On 13 June 2013 18:38, David Harkness wrote: > Hi Richard, > > On Thu, Jun 13, 2013 at 10:16 AM, Richard Quadling wrote: > >> I'm building a class which needs to have certain methods called by the >> subclass, but the subclass can extend but not obscure/override the >> behaviour. >> > > This is t

Re: [PHP] What is the name of the pattern that will ...

2013-06-13 Thread David Harkness
Hi Richard, On Thu, Jun 13, 2013 at 10:16 AM, Richard Quadling wrote: > I'm building a class which needs to have certain methods called by the > subclass, but the subclass can extend but not obscure/override the > behaviour. > This is the Template Method pattern, though in this case you could us

Re: [PHP] What is an easiest way to port a PHP Web App to Android?

2013-03-27 Thread Ashley Sheridan
Kevin Peterson wrote: >I have a web application written in PHP. It have been running for >several years. Now I want to run it as a stand-alone application on an >Android smartphone or tablet. How can I do it? There are simple web servers you can run on Android, and also standalone PHP parsers

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-27 Thread Lester Caine
LEOPARD Corporation wrote: Dev-PHP is an IDE, and I don't need such tool because I'm using Eclipse, and I'm very comfortable with. Good to hear others are using Eclipse as well ;) I work on a lot more than just PHP so as a single platform it's great - even between Linux and Windows. what I re

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-27 Thread As'ad Djamalilleil
i'm using dreamweaver its just good for designing + debugging ,, you dont have to type all the code ,, it would generate the script by itself so you can learn from the generated script ,, but takes time to make it handy ,, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] What is The best way/tool for debuging PHP?

2012-05-26 Thread admin
-Original Message- From: LEOPARD Corporation [mailto:leopardonline@gmail.com] Sent: Saturday, May 26, 2012 12:02 PM To: php-general@lists.php.net Subject: Re: [PHP] What is The best way/tool for debuging PHP? Thanks for your reply. Dev-PHP is an IDE, and I don't need such

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-26 Thread shiplu
There is nothing you can call best. But whether some tools, technology will perform better depends completely on the context. I know some ways to debug PHP codes. 1. Netbeans IDE. The debugging facility here is excellent. You can debug even a single file without creating a project. It uses xdebu

Re: [PHP] What is The best way/tool for debuging PHP?

2012-05-26 Thread LEOPARD Corporation
Thanks for your reply. Dev-PHP is an IDE, and I don't need such tool because I'm using Eclipse, and I'm very comfortable with. what I really want to know is: what is the best "pure" debugging tool which its function is to debug PHP scripts and applications only. Thanks in advance! On Sat, May

Re: [PHP] What is wrong here?

2012-04-25 Thread Stuart Dallas
On 25 Apr 2012, at 09:45, ma...@behnke.biz wrote: > "Karl-Arne Gjersøyen" hat am 25. April 2012 um 06:45 > geschrieben: > >> Hello again. >> I can't figure out what is wrong here. >> >> move_uploaded_file() get error message from die() and can't copy/move >> temp_file into directory bilder >>

Re: [PHP] What is wrong here?

2012-04-25 Thread ma...@behnke.biz
"Karl-Arne Gjersøyen" hat am 25. April 2012 um 06:45 geschrieben: > Hello again. > I can't figure out what is wrong here. > > move_uploaded_file() get error message from die() and can't copy/move > temp_file into directory bilder > > I have try to chmod 0777 bilder/ but it did not help. > Also

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Dotan Cohen
On Mon, Feb 13, 2012 at 23:04, Marc Guay wrote: > How about "long" dayname? > That makes sense. I now have two ways to remember. Thanks! > I find it interesting that the character for "Day of the month without > leading zeros" is j, which makes sense to me as a half-Francophone who > sometimes

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Dotan Cohen
On Mon, Feb 13, 2012 at 22:51, Matijn Woudt wrote: > Hi, > > I've been wondering where the letter was chosen from too, so I took > svn and got all the way back to revision 214 where the options was > first added. Note that this commit is June 7, 1996, and we're talking > about php2 (php/fi) here.

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Marc Guay
How about "long" dayname? I find it interesting that the character for "Day of the month without leading zeros" is j, which makes sense to me as a half-Francophone who sometimes calls days "jours". Not that it helps me remember it, I have to refer to that page pretty much every time I use date().

Re: [PHP] What is the mnemonic for date()'s Day format?

2012-02-13 Thread Matijn Woudt
On Mon, Feb 13, 2012 at 7:52 PM, Dotan Cohen wrote: > From the fine manual [1]: > l (lowercase 'L') > A full textual representation of the day of the week > > I can never remember this one, and I use it occasionally. What is the > mnemonic for "l"? How did this letter come to be chosen? Can anyone

Re: [PHP] What is an information_id in directory

2011-10-29 Thread Tim Streater
On 29 Oct 2011 at 20:46, Ernie Kemp wrote: > 2 - Make a new content area in Site Manager->Content Manager. It doesn't > matter what you put in your content area, you could just put "This is my new > content area" or "Hello World" if you so choose. > > 3 - Grab the information_id of the new conte

Re: [PHP] What is wrong with this preg_match?

2011-10-27 Thread Robert Williams
On 10/27/11 11:43, "Paul Halliday" wrote: >if ($argc == 1 || $argc > 2 || !preg_match("(\d{4}-\d{2}-\d{2})", > >Usage: ./process_patches.php > >patches@innm2 ~/Code/Oculi $ ./process_patches.php 2011-01-011 The problem is that your expression basically defines a 'contains'-type search, so

RE: [PHP] What is wrong with this preg_match?

2011-10-27 Thread Steve Staples
-Original Message- From: Paul Halliday [mailto:paul.halli...@gmail.com] Sent: Thursday, October 27, 2011 2:43 PM To: PHP-General Subject: [PHP] What is wrong with this preg_match? I have the following: if (isset($argc)) { if ($argc == 1 || $argc > 2 || !preg_match("(\d{4}-\d{2}-\d{2}

Re: [PHP] What is a label?

2011-07-14 Thread Daniel Brown
On Wed, Jul 13, 2011 at 16:57, Tim Streater wrote: > Looking over the definition of a function today I see: > >    Function names follow the same rules as other labels in PHP. > > but I can't find the definition of a label anywhere. I can't see it listed in > the contents - have I overlooked it?

Re: Re: [PHP] What is a label?

2011-07-14 Thread Richard Quadling
On 14 July 2011 13:37, Steve Staples wrote: >> A valid variable name starts with a letter or underscore > > If I am not mistaken, $_1 is not a valid variable name. [2011-07-14 13:19:18] [Z:\] [\\richardquadling\scratch$ ] >php -r "$_1 = 'one'; echo $_1;" one It starts with an undercore and is, t

Re: Re: [PHP] What is a label?

2011-07-14 Thread Steve Staples
On Thu, 2011-07-14 at 13:39 +0100, Stuart Dallas wrote: > On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples wrote: > > > On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote: > > > A valid variable name starts with a letter or underscore > > > > If I am not mistaken, $_1 is not a valid variable nam

Re: Re: [PHP] What is a label?

2011-07-14 Thread Stuart Dallas
On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples wrote: > On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote: > > A valid variable name starts with a letter or underscore > > If I am not mistaken, $_1 is not a valid variable name. You are mistaken. Try it. -Stuart -- Stuart Dallas 3ft9 Ltd

Re: Re: [PHP] What is a label?

2011-07-14 Thread Steve Staples
On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote: > On 13 Jul 2011 at 22:39, Micky Hulse wrote: > > > They must mean labels as in "general naming convention rules for > > programming"... Like not naming a variable/function "label" with a number at > > the front. > > > > Here's a page about

Re: Re: [PHP] What is a label?

2011-07-13 Thread Tim Streater
On 13 Jul 2011 at 22:39, Micky Hulse wrote: > They must mean labels as in "general naming convention rules for > programming"... Like not naming a variable/function "label" with a number at > the front. > > Here's a page about variables: > > http://www.php.net/manual/en/language.variables.basics

Re: [PHP] What is a label?

2011-07-13 Thread Micky Hulse
They must mean labels as in "general naming convention rules for programming"... Like not naming a variable/function "label" with a number at the front. Here's a page about variables: http://www.php.net/manual/en/language.variables.basics.php Variable names follow the same rules as other labels

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On Wed, Apr 28, 2010 at 2:17 PM, Thijs Lensselink wrote: > Gary . wrote: >> On 4/28/10, Thijs Lensselink wrote: >>> Gary . wrote: class Pg_Error {    private static $errors =        array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); >>> >>> Shouldn

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Thijs Lensselink
Gary . wrote: On 4/28/10, Thijs Lensselink wrote: Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated');

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Thijs Lensselink wrote: > Gary . wrote: >> class Pg_Error >> { >> private static $errors = >> array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); >> > Shouldn't this be: > > array(self::INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); Yes, or some

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Thijs Lensselink
Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); ... public static function getMessage($ec) { $

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Peter Lind
On 28 April 2010 10:57, Gary . wrote: > On 4/28/10, Jochem Maas wrote: >>>     >> class Pg_Error >>>     >> { >>>        const INTEGRITY_CONST_UNIQUE = '23505'; >> >> this is a class constant >> >>>     >>     private static $errors = >>>     >>         array(INTEGRITY_CONST_UNIQUE => 'uniqueness

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Jochem Maas wrote: >> >> class Pg_Error >> >> { >>const INTEGRITY_CONST_UNIQUE = '23505'; > > this is a class constant > >> >> private static $errors = >> >> array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint >> violated'); [...] > unfortunate

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Jochem Maas wrote: > Op 4/28/10 7:39 AM, Gary . schreef: >> class Pg_Error >> { const INTEGRITY_CONST_UNIQUE = '23505'; >> private static $errors = >> array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); >> ... >> public static function getMessage($ec)

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
Per Jessen wrote: > Gary . wrote: >> Calling it, the array_key_exists call always returns false ... >> and I can't see what I've done wrong :( > > Might this be better: > > public static function getMessage($ec) > { > $text = ''; > if (array_key_exists($ec, $errors)) >

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Peter Lind
On 28 April 2010 08:39, Gary . wrote: > class Pg_Error > { >    private static $errors = >        array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); > ... >    public static function getMessage($ec) >    { >        $text = ''; >        if (array_key_exists($ec, Pg_Error::$errors))

Re: [PHP] What is wrong with this code?

2010-04-27 Thread Per Jessen
Gary . wrote: > class Pg_Error > { > private static $errors = > array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint > violated'); > ... > public static function getMessage($ec) > { > $text = ''; > if (array_key_exists($ec, Pg_Error::$errors)) >

Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-05 Thread Daniel Egeberg
On Tue, Jan 5, 2010 at 10:34, Daniel Egeberg wrote: > On Tue, Jan 5, 2010 at 02:22, Varuna Seneviratna wrote: >> Since there are two stable versions 5.3 and 5.2 .What is the difference >> between these two streams and What is the need for maintaining two streams? > > The PHP 5.3.x branch is still

Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-04 Thread Lester Caine
Varuna Seneviratna wrote: Since there are two stable versions 5.3 and 5.2 .What is the difference between these two streams and What is the need for maintaining two streams? PHP5.3 introduced a number of 'improvements' that require many third party packages to be re-worked. Something which has

Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-04 Thread viraj
5.3.1 is what we call 'current release'. for those who do not like to sit on the edge, the latest is 5.2.12. both get bug fixes (checkout the home page release announcements), so they are 'still supported'. that means those versions earlier to 5.2.11 do not get bug fixes hence 'not supported but s

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread David Otton
2009/10/27 David Otton : > If you go with the first approach, you're writing code that you and > anyone who comes after you can write useful tests for. The others, and > you're denying maintenance programmers a useful tool. I should have lead with this: the wikipedia article on Dependency injecti

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Paul M Foster
On Tue, Oct 27, 2009 at 04:11:32PM +, David Otton wrote: > 2009/10/27 Paul M Foster : > > > On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: > > >> I'm in the process of implementing an ultra-light MVC framework in PHP. > >> It seems to be a common opinion that the loading of dat

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread David Otton
2009/10/27 Paul M Foster : > On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: >> I'm in the process of implementing an ultra-light MVC framework in PHP. >> It seems to be a common opinion that the loading of data from a >> database, file etc. should be independent of the Model, and I

Re: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Paul M Foster
On Tue, Oct 27, 2009 at 05:27:07PM +1100, Eric Bauman wrote: > I'm in the process of implementing an ultra-light MVC framework in PHP. > It seems to be a common opinion that the loading of data from a > database, file etc. should be independent of the Model, and I agree. > What I'm unsure of is t

RE: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread David Murphy
l layer. David > -Original Message- > From: Mert Oztekin [mailto:mozte...@anadolusigorta.com.tr] > Sent: Tuesday, October 27, 2009 6:14 AM > To: 'Eric Bauman'; php-general@lists.php.net > Subject: RE: [PHP] What is the best practice for adding persistence to an MVC >

RE: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Mert Oztekin
Hi Eric, IMO, controllers shouldnt be responsible for interacting models and datastoreres. Controllers might only change the datastore class of a model. You may use your models in lots of controller functions. Defining datastore in all controllers seems not a good practice. (too much unneccessa

Re: [PHP] What is the best way to process live data?

2009-08-29 Thread LinuxManMikeC
On Sat, Aug 29, 2009 at 3:31 PM, Paul Halliday wrote: > For those of you that remember (not likely but anyway) I am working on > some code that splits CLF records and feeds them into a database. > > What I need to do now is automate it. > > So what I have is a program (urlsnarf) that redirects its

Re: [PHP] What is this called?

2009-07-06 Thread Michael A. Peters
and throw your favorite Linux distro on it (I'm not touching that holy war with a 10' eth0 cord) I'll touch it. It shouldn't be Fedora - Fedora has too short of a lifetime before major version update is necessary to get patches. The main advantages of Fedora are how new and shiny the deskt

RE: [PHP] What is this called?

2009-07-06 Thread Daevid Vincent
> -Original Message- > From: Wolf [mailto:lonew...@nc.rr.com] > Sent: Monday, July 06, 2009 8:10 AM > > If you are running MySQL, go get a 486, put Fedora on it and > use it for the heavy queries. You didn't seriously just tell someone to use an ancient-ass __80486__ PC for their "hea

Re: [PHP] What is this called?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 11:15, Miller, Terion wrote: > > It seems like Pagination except I already have that in place for all records, > so maybe I'm just looking for a way to page the search results... > Boss kept referring to "partitioning results" By definition, yes, but if you use the term

Re: [PHP] What is this called?

2009-07-06 Thread Miller, Terion
On 7/6/09 10:07 AM, "Daniel Brown" wrote: On Mon, Jul 6, 2009 at 10:48, Miller, Terion wrote: > Ok, say you have a database with 16000 records in it, but you only want to > call out say 2000 records at a time as the search/query is performed, then > store the first 2000 in a session and then r

Re: [PHP] What is this called?

2009-07-06 Thread Wolf
"Miller wrote: > Ok, say you have a database with 16000 records in it, but you only want to > call out say 2000 records at a time as the search/query is performed, then > store the first 2000 in a session and then retrieve the next 2000 etc etc as > a way to minimize server strain? > > (I'm

Re: [PHP] What is this called?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 10:48, Miller, Terion wrote: > Ok, say you have a database with 16000 records in it, but you only want to > call out say 2000 records at a time as the search/query is performed, then > store the first 2000 in a session and then retrieve the next 2000 etc etc as > a way to min

Re: [PHP] What is this called?

2009-07-06 Thread Stuart
2009/7/6 Miller, Terion : > Ok, say you have a database with 16000 records in it, but you only want to > call out say 2000 records at a time as the search/query is performed, then > store the first 2000 in a session and then retrieve the next 2000 etc etc as > a way to minimize server strain? > > (

Re: [PHP] What is wrong with this code

2009-04-18 Thread Manuel Lemos
Hello, 9el wrote: > *Note:* It is worth noting that the mail() function is not suitable for > larger volumes of email in a loop. This function opens and closes an SMTP > socket for each email, which is not very efficient. > For the sending of large amounts of email, see the » PEAR::Mail, and » > P

Re: [PHP] What is wrong with this code

2009-04-18 Thread Reese
9el wrote: But in practice. I mean in real life you'll find the mail() function is disabled in most servers :) That's nice, but how many is "larger volumes of email"? 500? 5,000? 25,000? I note PEAR:Mail has 3 open bugs, PEAR:Mail_Mime has 23 with 3 open support requests. PHPMailer was mention

Re: [PHP] What is wrong with this code

2009-04-18 Thread 9el
But in practice. I mean in real life you'll find the mail() function is disabled in most servers :)

Re: [PHP] What is wrong with this code

2009-04-18 Thread Reese
9el wrote: *Note:* It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
Wow can't believe I missed that. I also was wondering why Ray mailed an empty message... :) -Original Message- From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf Of 9el Sent: Friday, April 03, 2009 4:05 PM To: Gary Cc: php-general@lists.php.net Subject: Re:

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
That was it, but Im sorry, I did not see that Ray had already pointed that out, so apologies to Ray and many thanks to everyone... gary "9el" wrote in message news:79d892150904031305j6e1b00d4qed0d9fbf13437...@mail.gmail.com... >

Re: [PHP] What is wrong with this code

2009-04-03 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- On

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
Peter I had the if ( isset( $_POST['submit'] ) ) { in there and it did not work. I have used this on several sites, the only difference is that I was tyring to contain it in one file. I also created a file just to process the POST, but it still did not work. I was thinkning it was something

Re: [PHP] What is wrong with this code

2009-04-03 Thread Peter van der Does
On Fri, 3 Apr 2009 15:08:45 -0400 "Gary" wrote: > This is driving me nuts. I am getting blank emails and the only > information that is being passed to MySQL is the IP address. > > Can someone tell me what is wrong with this? > If this is in one file, as I assume it is, here's what is happeni

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
This is unrelated, the email sends fine. And it's one per submission. -Original Message- From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf Of 9el Sent: Friday, April 03, 2009 3:37 PM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP] What is wrong

Re: [PHP] What is wrong with this code

2009-04-03 Thread 9el
*Note:* It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue packages. * N

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
ng like print_r on $_POST to see if it contains *anything*, >> seems like it's empty?! >> >> Also, when you say blank emails I assume you mean they have the template >> you made but the variables are empty and not zero-length emails. >> >> -Original Mes

Re: [PHP] What is wrong with this code

2009-04-03 Thread Ray
On Friday 03 April 2009 13:08:45 Gary wrote: > This is driving me nuts. I am getting blank emails and the only > information that is being passed to MySQL is the IP address. > > Can someone tell me what is wrong with this? > > > >If you can see this, it's an anti-spam measure. Please don't

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
e it's empty?! Also, when you say blank emails I assume you mean they have the template you made but the variables are empty and not zero-length emails. -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Friday, April 03, 2009 3:14 PM To: php-general@lists.php.net Subject: Re:

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
p...@ptd.net] > Sent: Friday, April 03, 2009 3:14 PM > To: php-general@lists.php.net > Subject: Re: [PHP] What is wrong with this code > > Its there... > > > "Igor Escobar" wrote in message > news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.co

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
emails I assume you mean they have the template you made but the variables are empty and not zero-length emails. -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Friday, April 03, 2009 3:14 PM To: php-general@lists.php.net Subject: Re: [PHP] What is wrong with this code Its

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
d.net] Sent: Friday, April 03, 2009 3:14 PM To: php-general@lists.php.net Subject: Re: [PHP] What is wrong with this code Its there... "Igor Escobar" wrote in message news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.com... > You forgot to mention the &q

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
Its there... "Igor Escobar" wrote in message news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.com... > You forgot to mention the "method" of the form. > > ... > > Regards, > Igor Escoar > Systems Analyst & Interface Designer > > -- > > Personal Blog > ~ blog.igorescobar.com > Onli

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
You forgot to mention the "method" of the form. ... Regards, Igor Escoar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Fri, Apr 3, 2009 at 4:08 PM, Gary wrote: > This is driving me nuts. I

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-17 Thread Nathan Nobbe
16 April 2008 17:23 > > > To: Jay Blanchard > > > Cc: Tony Marston; php-general@lists.php.net > > > Subject: Re: [PHP] What is the practical use of "abstract" > > > and "interface"? > > > > > > > > > On 16/0

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-17 Thread Robin Vickery
On 16/04/2008, Tony Marston <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Robin Vickery [mailto:[EMAIL PROTECTED] > > Sent: 16 April 2008 17:23 > > To: Jay Blanchard > > Cc: Tony Marston; php-general@lists.php.net > >

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 9:13 PM, Daevid Vincent <[EMAIL PROTECTED]> wrote: > > >> All that extra code for absolutely no benefit! It is > > possible to define an > > >> interface (as in API) without actually using the term > > "interface", so IMHO > > >> the term "interface" is totally redundant an

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Daevid Vincent
> >> All that extra code for absolutely no benefit! It is > possible to define an > >> interface (as in API) without actually using the term > "interface", so IMHO > >> the term "interface" is totally redundant and a waste of time. > > > > While I agree that Interfaces are mostly a lot of extra

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jochem Maas
seems nobody has a proper example of how a defined abstract class and/or interface can actually be usefu beyond documentation or compile time checks. well consider this (no code, it would take too much I think): 1. a CMS that manages a dynamic, user-created tree of nodes, each node containing 's

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett <[EMAIL PROTECTED]> wrote: This is a holy war that is never going to end. It boils down to personal and professional preferences. The fact of the matter is, if a company uses these concepts and you don't know, understand,

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett <[EMAIL PROTECTED]> wrote: > This is a holy war that is never going to end. It boils down to personal > and professional preferences. The fact of the matter is, if a company uses > these concepts and you don't know, understand, or execute that know

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> wrote: "Robert Cummings" <[EMAIL PROTECTED]> wrote in message While I agree that Interfaces are mostly a lot of extra code, I have to also say that they are there primarily to enforce a contract betwe

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:54 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: > > On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston < > [EMAIL PROTECTED]> > > wrote: > > > > > > > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > > >

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:01 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: > > On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > > [snip] > > > > What about encapsulation? > > > > > > Interfaces have nothing to do with encap

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: > On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> > wrote: > > > > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > > While I agree that Interfaces are mostly a lot of extra code, I have to > > > also say that th

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> wrote: > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > While I agree that Interfaces are mostly a lot of extra code, I have to > > also say that they are there primarily to enforce a contract between the > > user of t

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: > On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > > > What about encapsulation? > > > > Interfaces have nothing to do with encapsulation for the smple reason > > that I > > can have encapsulation without using interfa

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robin Vickery
On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > What about encapsulation? > > Interfaces have nothing to do with encapsulation for the smple reason > that I > can have encapsulation without using interfaces. Unique use of logic there. By similar reasoning; swimming trunks

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jay Blanchard
[snip] > What about encapsulation? Interfaces have nothing to do with encapsulation for the smple reason that I can have encapsulation without using interfaces. > Also, there is an advantage to > interfaces that has not been mentioned yet, the fact that a > class can implement multiple interfac

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jay Blanchard
[snip] "enforcing a contract" is a lot of maningless gobbledegook. The simple fact is that it is possible to have an interface without ever using the term "interface". Nothing extra is added by using the term "interface" (except for effort) so there is absolutely no advantage in doing so. That i

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Tony Marston
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Wed, 2008-04-16 at 12:20 +0100, Tony Marston wrote: >> The term "abstract" has been adequately defined in this thread, so I >> won't >> repeat it. >> >> However, there is one important aspect of the term "interf

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 12:20 +0100, Tony Marston wrote: > The term "abstract" has been adequately defined in this thread, so I won't > repeat it. > > However, there is one important aspect of the term "interface" which I think > that most people seem to miss - it is not necessary to use the term >

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Tony Marston
The term "abstract" has been adequately defined in this thread, so I won't repeat it. However, there is one important aspect of the term "interface" which I think that most people seem to miss - it is not necessary to use the term "interface" in order to have an interface. Let me explain with a co

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Larry Garfield
On Wednesday 16 April 2008, Daevid Vincent wrote: > > -Original Message- > > From: Larry Garfield [mailto:[EMAIL PROTECTED] > > > > If your code doesn't have an API and clear separation of > > parts, then neither > > abstract classes nor interfaces are useful to you. > > > > If you're codin

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Daevid Vincent
> -Original Message- > From: Larry Garfield [mailto:[EMAIL PROTECTED] > > If your code doesn't have an API and clear separation of > parts, then neither > abstract classes nor interfaces are useful to you. > > If you're coding anything of respectable size, vis, more than > a one-off

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Shawn McKenzie
ALarry Garfield wrote: On Tuesday 15 April 2008, Daevid Vincent wrote: I've had at least three job interviews in the past two weeks, and each one has asked me this rather "text book academic" question regarding the difference between "abstract" vs. "interface". I've been coding for nearly 20 yea

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Larry Garfield
On Tuesday 15 April 2008, Daevid Vincent wrote: > I've had at least three job interviews in the past two weeks, and each one > has asked me this rather "text book academic" question regarding the > difference between "abstract" vs. "interface". I've been coding for nearly > 20 years, and at least 1

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Rodrigo Reis da Rocha
Just adding one line to the topic... Interfaces are like C or C++ headers files. Them are used to another class(program in C) to call methods without care the implementation. In other hand abstract classes are (as the name says) an abstract way to use multiple specializations of the same group of c

RE: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Jay Blanchard
[snip] ...stuff... [/snip] The practical use of an abstract class is in its ability to define criteria for classes that inherit from it. How practical would it be to define a 'truck' class with 4 wheels and then define a 'car' class with 4 wheels when we could define an abstract class that defines

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-14 Thread Iñigo Medina García
Daevid Vincent wrote: > I've had at least three job interviews in the past two weeks, and each one > has asked me this rather "text book academic" question regarding the > difference between "abstract" vs. "interface". I've been coding for nearly 20 > years, and at least 10 of those have been in

Re: [PHP] what is better way to write the query

2007-11-05 Thread Shafiq Rehman
Hi, If possible, write your inserts queries in a text file and use LOAD DATA for bulk inserts. -- Keep Smiling Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 11/2/07, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > On Nov 2, 2007 10:41 AM, afan pasalic <[

Re: [PHP] what is better way to write the query

2007-11-02 Thread Andrew Ballard
On Nov 2, 2007 10:41 AM, afan pasalic <[EMAIL PROTECTED]> wrote: > ...is there any suggestion for the process of inserting up to 5K records at > the time ... Is it possible to save your data to a text file and then use one of MySQL's built-in import queries? (I know in some situations it isn't an

Re: [PHP] what is better way to write the query

2007-11-02 Thread afan pasalic
Stut wrote: > Jim Lucas wrote: >> afan pasalic wrote: >>> hi, >>> it's maybe more question for mysql list, but since php is involved >>> too... :-) >>> I have php script that inserts into mysql table couple hundreds of >>> records. >>> usually, it looks like: >>> >> // 1st record >>> $query = "INSE

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
afan pasalic wrote: Stut wrote: afan pasalic wrote: Stut wrote: Jim Lucas wrote: afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I would

  1   2   3   4   5   >