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

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

2013-06-13 Thread Richard Quadling
Hi. 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. So, for example, a method AuthRequestMade() will record the activity of making an authorisation request. It cannot make the actual request as th

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

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

2012-05-26 Thread LEOPARD Corporation
Hello, I'm new to this list, and this is the first time ever I send a message to you. I'm learning PHP since a couple of months, and I really wanna be a good PHP programer, and I know that I should work hard for that. Now, I just wanted to know what is the best way or tool for debuging PHP. I h

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

[PHP] What is wrong here?

2012-04-24 Thread Karl-Arne Gjersøyen
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 I have try to chown www-data.www-data bilder/ since Ubuntu Server run apache as www-

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: FW: [PHP] What is an information_id in directory

2011-10-30 Thread Lester Caine
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 content area you made. When you are edit

FW: [PHP] What is an information_id in directory

2011-10-29 Thread Ernie Kemp
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 content area you made. When you are editing a content area t

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

[PHP] What is an information_id in directory

2011-10-29 Thread Ernie Kemp
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 content area you made. When you are editing a content a

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

[PHP] What is wrong with this preg_match?

2011-10-27 Thread Paul Halliday
I have the following: if (isset($argc)) { if ($argc == 1 || $argc > 2 || !preg_match("(\d{4}-\d{2}-\d{2})", $argv[1])) { echo "\nUsage: $argv[0] \n\n"; exit; } else { $base_date = $argv[1]; } } else { $base_date = date('Y-m-d'); } When I run it: $ ./proce

[PHP] What is valid for a named parameter in a prepared query using PDO_SQLSRV.

2011-08-01 Thread Richard Quadling
Hi. Just started using PDO with the nice and shiny SQLSRV driver form Microsoft for SQL Server. I seem to be having an issue with named parameters in prepared statements. Are there limitations to the characters that can be used for named parameters. UPPER, lower and MixedCase all seem OK, but I

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

[PHP] What is a label?

2011-07-13 Thread Tim Streater
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? If not, how can I request the the doccy be updated? Tim Str

RE: [PHP] I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

2010-11-18 Thread Tommy Pham
> -Original Message- > From: Keerat Singh [mailto:professionalkee...@yahoo.in] > Sent: Thursday, November 18, 2010 2:09 AM > To: php-general@lists.php.net > Subject: [PHP] I am a Windows programmer and getting started on PHP. > What is the easiest way of getting started?

Re: [PHP] I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

2010-11-18 Thread Aman Singh
helps. On Thu, Nov 18, 2010 at 3:38 PM, Keerat Singh wrote: > I am a Windows programmer and getting started on PHP. What is the easiest > way of > getting started? Most of the stuff I encounter seems to be very Linux > specific. > >

[PHP] I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

2010-11-18 Thread Keerat Singh
I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

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)) >

[PHP] What is wrong with this code?

2010-04-27 Thread Gary .
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)) { $text = Pg_Error::$errors[$ec

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

[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 Varuna Seneviratna
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?

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
{ $this->_dataStorer = $newStorer; } } Hope it will be usefull and understandable -Original Message- From: Eric Bauman [mailto:baum...@livejournal.dk] Sent: Tuesday, October 27, 2009 8:27 AM To: php-general@lists.php.net Subject: [PHP] What is the best practic

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

2009-10-26 Thread Eric Bauman
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 the best way to link this "data layer" into MVC. I've considered a

[PHP] what is php4 popularity?

2009-10-08 Thread Paul M.
Hey guys, does anyone have a good link for an article where php4 popularity trends are examined? The best way for me to know php4 % and php5 %. I appreciate any good suggestions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

2009-08-29 Thread Paul Halliday
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 output (simple "cmd > file.txt") to a file. The script currently

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? > > (

[PHP] What is this called?

2009-07-06 Thread 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? (I'm tasked to do this and ) 1. do

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
[PHP] What is wrong with this code --- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubunt

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
ubject: Re: [PHP] What is wrong with this code I recieve an email, it will contain the ip address, it will also contain the name:, email: , comments: but not the information from the form of the name or email or comments. The database also recieves only the ip address. So I assume those parts a

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

[PHP] What is wrong with this code

2009-04-03 Thread Gary
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 fill in the address field. Address Name:

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

  1   2   3   4   5   6   >