Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Lester Caine
Daevid Vincent wrote: I'm not looking to start a holy war here or re-hash the tired debate. I just want some hard cold numbers to look at. "Do you use a public framework or roll your own?" http://www.rapidpoll.net/8opnt1e I'm not sure quite what to answer here. I've been using bitweaver for

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread clancy_1
On Tue, 26 Jan 2010 21:57:05 -0500, pa...@quillandmouse.com (Paul M Foster) wrote: >On Tue, Jan 26, 2010 at 04:17:26PM -0800, Daevid Vincent wrote: > >> >> I'm not looking to start a holy war here or re-hash the tired debate. >> I just want some hard cold numbers to look at. >> >> "Do you use a

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread James McLean
On Wed, Jan 27, 2010 at 4:50 PM, Michael Kubler wrote: > I read somewhere (can't find the link at the moment) that there's probably > 2.5 frameworks per PHP developer. There would be a lot of truth to that, I hacked up a smaller & simpler PHP4-centric framework back in the days when it was suppor

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Michael Kubler
I read somewhere (can't find the link at the moment) that there's probably 2.5 frameworks per PHP developer. I know that when I started I was writing my own bits and pieces of two frameworks. One was function based and the other was OO based. I've since found the Yii

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Michael A. Peters
Eric Lee wrote: Hi Micheal, One of way for this should be by checking the header of the file with its OggS magic number. You may take a look at this page to see if it could help ! http://en.wikipedia.org/wiki/Ogg But I'am confused that the mime type should be enough what type of data its

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread clancy_1
On Tue, 26 Jan 2010 18:52:06 -0800, dae...@daevid.com ("Daevid Vincent") wrote: >First of all writing pages in this old fashioned .cgi sort of way is so >1990's. Concatenating your whole page to a giant string is silly and >defeats the benefits (and purpose) of using PHP. >I'm actual

Re: [PHP] help with preg_replace pattern

2010-01-26 Thread Adam Richardson
On Tue, Jan 26, 2010 at 10:37 PM, Rob Gould wrote: > It appears that IE renders it's display: none in all caps while Firefox and > other browsers pass it back in lowercase. This throws off my php line of > code the is supposed to nuke blank bullets from a string of text: > $bl = > > > > > >

Re: [PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 07:21:34PM -0800, Daevid Vincent wrote: > > -Original Message- > > From: Paul M Foster [mailto:pa...@quillandmouse.com] > > Sent: Tuesday, January 26, 2010 7:05 PM > > To: php-general@lists.php.net > > Subject: [PHP] Magic Methods not working > > > > I have a class

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Eric Lee
Hi Micheal, One of way for this should be by checking the header of the file with its OggS magic number. You may take a look at this page to see if it could help ! http://en.wikipedia.org/wiki/Ogg But I'am confused that the mime type should be enough what type of data its coming ! Are there are

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 07:23:24PM -0800, Michael A. Peters wrote: > When I use fileinfo on an uploaded Ogg file, the mime it returns is > Application/Ogg which is almost useless. > > Is there a reliable php way, preferably without needing to execute shell > commands, to positively identify a file

[PHP] help with preg_replace pattern

2010-01-26 Thread Rob Gould
It appears that IE renders it's display: none in all caps while Firefox and other browsers pass it back in lowercase. This throws off my php line of code the is supposed to nuke blank bullets from a string of text: $bl = Reserved Frontstretch Tower Ticket to the NextEra Energy Reso

Re: [PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
On Wed, Jan 27, 2010 at 11:19:34AM +0800, Eric Lee wrote: > > > On Wed, Jan 27, 2010 at 11:04 AM, Paul M Foster > wrote: > > I have a class which instantiates other classes, and has a magic method > like this: > > function _get($classname) > { >        return $this->instan

[PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Michael A. Peters
When I use fileinfo on an uploaded Ogg file, the mime it returns is Application/Ogg which is almost useless. Is there a reliable php way, preferably without needing to execute shell commands, to positively identify a file as Ogg Theora or Ogg Vorbis? Thanks for suggestions. -- PHP General Ma

RE: [PHP] Magic Methods not working

2010-01-26 Thread Daevid Vincent
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Tuesday, January 26, 2010 7:05 PM > To: php-general@lists.php.net > Subject: [PHP] Magic Methods not working > > I have a class which instantiates other classes, and has a > magic method > like this: > >

Re: [PHP] Magic Methods not working

2010-01-26 Thread Eric Lee
On Wed, Jan 27, 2010 at 11:04 AM, Paul M Foster wrote: > I have a class which instantiates other classes, and has a magic method > like this: > > function _get($classname) > { >return $this->instantiate($classname); > } > > Obviously, the class also has an instantiate method which does wha

[PHP] Magic Methods not working

2010-01-26 Thread Paul M Foster
I have a class which instantiates other classes, and has a magic method like this: function _get($classname) { return $this->instantiate($classname); } Obviously, the class also has an instantiate method which does what it says. Here's the problem: When I call the instantiate method, it

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 04:17:26PM -0800, Daevid Vincent wrote: > > I'm not looking to start a holy war here or re-hash the tired debate. > I just want some hard cold numbers to look at. > > "Do you use a public framework or roll your own?" > http://www.rapidpoll.net/8opnt1e I voted, but like o

RE: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Daevid Vincent
> -Original Message- > From: clanc...@cybec.com.au [mailto:clanc...@cybec.com.au] > Sent: Tuesday, January 26, 2010 6:09 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Creating an Entire .html page with PHP > > On Mon, 25 Jan 2010 18:31:54 -0800, deal...@gmail.com > ("deal...

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 04:17:26PM -0800, Daevid Vincent wrote: > And for those interested, here are the results of the last poll: > > "To add the final ?> in PHP or not..." > http://www.rapidpoll.net/show.aspx?id=arc1opy > > I'm relieved to know I'm in the majority (almost 2:1) who close thei

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Paul M Foster
On Wed, Jan 27, 2010 at 10:07:13AM +0800, Eric Lee wrote: > Hi, all > > I'am doubted about installing a local mail server for just low volume > mailing. > May I ask all yours professional what do you think about it ? > Every place I've ever hosted (all Linux servers) include a local MTA which i

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread clancy_1
On Mon, 25 Jan 2010 18:31:54 -0800, deal...@gmail.com ("deal...@gmail.com") wrote: > >On Jan 25, 2010, at 6:23 PM, Shawn McKenzie wrote: > >> file_put_contents() is s much easier. > >Thanks Shawn I'll check that out ... > >- I see it says : This function is identical to calling fopen(), >fw

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Eric Lee
Hi, all I'am doubted about installing a local mail server for just low volume mailing. May I ask all yours professional what do you think about it ? Thanks in advanced. Regards, Eric, > -- > Jim Lucas > NOC Manager > 541-323-9113 > BendTel, Inc. > http://www.bendtel.com > > -- > PHP Gener

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Jim Lucas
Manuel Lemos wrote: > Hello, > > On Tue, Jan 26, 2010 at 12:02 PM, Angus Mann wrote: >> I'm currently using the phpmailer class from phpmailer.worxware.com to >> send datatbase -populated emails to clients. >> >> At the moment I'm runninng PHP on Windows and using the built-in sendmail >> equival

RE: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Ashley Sheridan
On Tue, 2010-01-26 at 17:01 -0800, Daevid Vincent wrote: > > > -Original Message- > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Sent: Tuesday, January 26, 2010 4:18 PM > > > > On Tue, 2010-01-26 at 16:17 -0800, Daevid Vincent wrote: > > > > > I'm not looking to start

RE: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Tuesday, January 26, 2010 4:18 PM > > On Tue, 2010-01-26 at 16:17 -0800, Daevid Vincent wrote: > > > I'm not looking to start a holy war here or re-hash the > > tired debate. I just want some hard

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Michael A. Peters
Daevid Vincent wrote: I'm not looking to start a holy war here or re-hash the tired debate. I just want some hard cold numbers to look at. "Do you use a public framework or roll your own?" http://www.rapidpoll.net/8opnt1e And for those interested, here are the results of the last poll: "To

RE: [PHP] If the first four characters are "0000", then do {} - timing tests

2010-01-26 Thread Daevid Vincent
> -Original Message- > From: muquad...@gmail.com [mailto:muquad...@gmail.com] On > Behalf Of shiplu > Sent: Tuesday, January 26, 2010 4:25 PM > To: Daniel Brown > Cc: Daevid Vincent; PHP-General > Subject: Re: [PHP] If the first four characters are "", > then do {} - timing tests > >

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread James McLean
On Wed, Jan 27, 2010 at 10:47 AM, Daevid Vincent wrote: > > I'm not looking to start a holy war here or re-hash the tired debate. > I just want some hard cold numbers to look at. > > "Do you use a public framework or roll your own?" > http://www.rapidpoll.net/8opnt1e I have rolled my own in the p

Re: [PHP] If the first four characters are "0000", then do {} - timing tests

2010-01-26 Thread shiplu
Ran this code (http://pastie.org/795983) The result is, array of 10,000 Array ( [[]] => 5.66168689728 [strpos] => 5.70796895027 [substr] => 5.92751288414 [preg_match] => 6.21515512466 ) -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu S

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Ashley Sheridan
On Tue, 2010-01-26 at 16:17 -0800, Daevid Vincent wrote: > I'm not looking to start a holy war here or re-hash the tired debate. > I just want some hard cold numbers to look at. > > "Do you use a public framework or roll your own?" > http://www.rapidpoll.net/8opnt1e > > > And for those interes

[PHP] Do you use a public framework or roll your own?

2010-01-26 Thread Daevid Vincent
I'm not looking to start a holy war here or re-hash the tired debate. I just want some hard cold numbers to look at. "Do you use a public framework or roll your own?" http://www.rapidpoll.net/8opnt1e And for those interested, here are the results of the last poll: "To add the final ?> in PHP

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Manuel Lemos
Hello, On Tue, Jan 26, 2010 at 12:02 PM, Angus Mann wrote: > I'm currently using the phpmailer class from phpmailer.worxware.com to > send datatbase -populated emails to clients. > > At the moment I'm runninng PHP on Windows and using the built-in sendmail > equivalent packaged with XAMPP. It use

Re: [PHP] Strange behaviour with str_ireplace()

2010-01-26 Thread Angus Mann
Grrr...please ignore. After battling with this for a while I now can't reproduce the problem. Apologies for an un-necessary post. - Original Message - From: "Angus Mann" To: "PHP-General" Sent: Wednesday, January 27, 2010 9:02 AM Subject: [PHP] Strange behaviour with str_ireplace()

[PHP] Strange behaviour with str_ireplace()

2010-01-26 Thread Angus Mann
Hi all. I found some unexpected behaviour with str_ireplace. To summarize, if the $replace term is a number, but formatted as currency with trailing zero's (34.50) the function drops the trailing zero. Example : $price=34.5; $message="You owe me #amount#."; $message1 = str_ireplace("#amount#,sp

Re: [PHP] If the first four characters are "0000", then do {} - timing tests

2010-01-26 Thread Daniel Brown
On Tue, Jan 26, 2010 at 17:17, Daevid Vincent wrote: > > Well allow me to retort... :) > > Your test was for 5 measly array elements. > > Just for S&G I tried it with the strpos one too and modified your test > slightly to handle bigger arrays... > [snip=code] > > I ran out of memory with more tha

RE: [PHP] If the first four characters are "0000", then do {} - timing tests

2010-01-26 Thread Daevid Vincent
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On > Behalf Of Daniel Brown > Sent: Tuesday, January 26, 2010 8:21 AM > To: Daevid Vincent > Cc: John Taylor-Johnston; PHP-General > Subject: Re: [PHP] If the first four characters are "", then do {} > > On

Re: [PHP] DirectoryIterator

2010-01-26 Thread Paul M Foster
On Tue, Jan 26, 2010 at 10:01:12PM +0100, Kim Madsen wrote: > Christoph Boget wrote on 26/01/2010 21:17: >> I've looked through the docs but was unable to find out if this is > possible; >> I hope it is. Is there a way that you get the size/length of the > collection >> to be iterated (e.g. the t

Re: [PHP] DirectoryIterator

2010-01-26 Thread Nathan Nobbe
On Tue, Jan 26, 2010 at 2:06 PM, Nathan Nobbe wrote: > On Tue, Jan 26, 2010 at 2:05 PM, Christoph Boget wrote: > >> I executed the following test script several times. Each time, in a >> separate terminal window, I ran "touch bob.txt" after the script started >> echoing out. After the script com

Re: [PHP] DirectoryIterator

2010-01-26 Thread Nathan Nobbe
On Tue, Jan 26, 2010 at 2:01 PM, Kim Madsen wrote: > Christoph Boget wrote on 26/01/2010 21:17: > > I've looked through the docs but was unable to find out if this is >> possible; >> I hope it is. Is there a way that you get the size/length of the >> collection >> to be iterated (e.g. the total

Re: [PHP] DirectoryIterator

2010-01-26 Thread Nathan Nobbe
On Tue, Jan 26, 2010 at 2:05 PM, Christoph Boget wrote: > I executed the following test script several times. Each time, in a > separate terminal window, I ran "touch bob.txt" after the script started > echoing out. After the script completed, I deleted bob.txt. During each > execution, not on

Re: [PHP] DirectoryIterator

2010-01-26 Thread Christoph Boget
I executed the following test script several times. Each time, in a separate terminal window, I ran "touch bob.txt" after the script started echoing out. After the script completed, I deleted bob.txt. During each execution, not once did bob.txt show up in the output. This makes me believe that

Re: [PHP] DirectoryIterator

2010-01-26 Thread Kim Madsen
Christoph Boget wrote on 26/01/2010 21:17: I've looked through the docs but was unable to find out if this is possible; I hope it is. Is there a way that you get the size/length of the collection to be iterated (e.g. the total number of files) without having to iterate through at least once? O

Re: [PHP] DirectoryIterator

2010-01-26 Thread Christoph Boget
> > right but the collection is built during iteration. > So you're saying that if I add a file to the directory between the time I instantiate the DirectoryIterator and the time I'm finished iterating through, that file could be picked up? Or is the instance only going to contain a list of files

Re: [PHP] DirectoryIterator

2010-01-26 Thread Nathan Nobbe
On Tue, Jan 26, 2010 at 1:25 PM, Christoph Boget wrote: > > > > def not on DirectorIterator afaik, and furthermore, i dont think thats > > supported at the shell / filesystem level even. > > > Well if the Iterator has the whole of the collection in order to be able to > iterate over it, I would t

Re: [PHP] DirectoryIterator

2010-01-26 Thread Ashley Sheridan
On Tue, 2010-01-26 at 15:25 -0500, Christoph Boget wrote: > > > > def not on DirectorIterator afaik, and furthermore, i dont think thats > > supported at the shell / filesystem level even. > > > Well if the Iterator has the whole of the collection in order to be able to > iterate over it, I woul

Re: [PHP] DirectoryIterator

2010-01-26 Thread Christoph Boget
> > def not on DirectorIterator afaik, and furthermore, i dont think thats > supported at the shell / filesystem level even. Well if the Iterator has the whole of the collection in order to be able to iterate over it, I would think that it should be able to return the size of that collection... :

Re: [PHP] DirectoryIterator

2010-01-26 Thread Nathan Nobbe
On Tue, Jan 26, 2010 at 1:17 PM, Christoph Boget wrote: > I've looked through the docs but was unable to find out if this is > possible; > I hope it is. Is there a way that you get the size/length of the > collection > to be iterated (e.g. the total number of files) without having to iterate > t

[PHP] DirectoryIterator

2010-01-26 Thread Christoph Boget
I've looked through the docs but was unable to find out if this is possible; I hope it is. Is there a way that you get the size/length of the collection to be iterated (e.g. the total number of files) without having to iterate through at least once? thnx, Christoph

Re: [PHP] SQL question

2010-01-26 Thread Kim Madsen
Michael A. Peters wrote on 26/01/2010 06:04: I use seconds from epoch in the database simply because it works so well with the php date() function. If you need something where Julian day really is better, I assume it isn't that hard to convert between posix and julian day, though it seems od

[PHP] hola mundo

2010-01-26 Thread PEPITOVADECURT
Hola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL question

2010-01-26 Thread tedd
At 9:54 PM -0600 1/25/10, Skip Evans wrote: Hey all, I have an SQL query that's stumping me. I have two date variables, $start and $end that are in mm/dd/ format and two database fields, start_date and no_donations. The start date is mm/dd/ format and no_donations is an integer that

[PHP] Reports generator

2010-01-26 Thread PEPITOVADECURT
Exists any reports generator that exports directly to html/php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Migrating legacy code - changing session name

2010-01-26 Thread Jochem Maas
Op 1/26/10 9:25 AM, Rory McKinley schreef: > Hello List > > A client has asked me to migrate a few scripts that have been running > merrily under PHP4 to PHP5.2. Part of these scripts have integration > with PHPMyAdmin > using the single sign-on and so they make use of the following code : > > se

Re: [PHP] If the first four characters are "0000", then do {}

2010-01-26 Thread Daniel Brown
On Mon, Jan 25, 2010 at 22:51, Daevid Vincent wrote: >> -Original Message- >> From: paras...@gmail.com [mailto:paras...@gmail.com] On >> Behalf Of Daniel Brown >> Sent: Monday, January 25, 2010 6:43 PM >> To: John Taylor-Johnston >> Cc: PHP-General >> Subject: Re: [PHP] If the first four c

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Michael A. Peters
Ashley Sheridan wrote: I think generally though, it's usual to have the pages created and output on the fly, rather than output the .html page. Yes, though often using a cache if it is dynamic content that doesn't change often. No reason to hit the db continuously if the content is the s

Re: [PHP] preg_replace help

2010-01-26 Thread Michael A. Peters
Michael A. Peters wrote: Kim Madsen wrote: Michael A. Peters wrote on 26/01/2010 14:18: $fixSrch[] = '/\n/'; $fixRplc[] = '[br]'; is what I need except I want it to leave anything between [code] and [/code] alone. I figured it out before but with but I don't even remember what I was work

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Ashley Sheridan
On Tue, 2010-01-26 at 09:55 -0500, Ryan Sun wrote: > Isn't there a framework doing that? > > On Mon, Jan 25, 2010 at 8:00 PM, deal...@gmail.com wrote: > > > Hi Folks, > > > > I would like to create an entire .html page gathered from database content > > mixed with html etc. and be able to save t

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Camilo Sperberg
> > a certain string can contain the following information: >> >> $string = >> 'hi{value1;value2}bye{value1;value3}hi{value1;value4}hi{value1;value2}bye{value1;value2}'; >> >> What I want is to be able to get this result: >> >> $string = >> 'hi{value1;value2}bye{value1;value3}hi{value1;value4}bye{v

Re: [PHP] Creating an Entire .html page with PHP

2010-01-26 Thread Ryan Sun
Isn't there a framework doing that? On Mon, Jan 25, 2010 at 8:00 PM, deal...@gmail.com wrote: > Hi Folks, > > I would like to create an entire .html page gathered from database content > mixed with html etc. and be able to save the page... > > > like: > > --- save all this pre made content as .ht

Re: [PHP] preg_replace help

2010-01-26 Thread Michael A. Peters
Kim Madsen wrote: Michael A. Peters wrote on 26/01/2010 14:18: $fixSrch[] = '/\n/'; $fixRplc[] = '[br]'; is what I need except I want it to leave anything between [code] and [/code] alone. I figured it out before but with but I don't even remember what I was working on when I did that and

Re: [PHP] If the first four characters are "0000", then do {}

2010-01-26 Thread paragasu
maybe another way can be $str = explode('-',$mydata->restored); if($str[0] == '') { dostuff();} ;) On 1/26/10, shiplu wrote: > Another technique could be. > > $s = $mydata->restored; > > if($s[0]==$s[1] > && $s[1]==$s[2] > && $s[2]==$s[3] > && $s[3]==0){ > > do_work(); > } > > > But I

RE: [PHP] Speed of sending email .. can I put them in a queuerather than wait?

2010-01-26 Thread Bob McConnell
From: Paul M Foster > On Tue, Jan 26, 2010 at 02:02:18PM +1000, Angus Mann wrote: >> >> I'm currently using the phpmailer class from phpmailer.worxware.com >> to send datatbase -populated emails to clients. >> >> At the moment I'm runninng PHP on Windows and using the built-in >> sendmail equivale

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Ashley Sheridan
On Tue, 2010-01-26 at 07:56 -0500, Al wrote: > > On 1/25/2010 10:48 PM, Camilo Sperberg wrote: > > Hello list :) > > > > I have this problem, a certain string can contain the following information: > > > > > > $string = ' > > hi{value1;value2} > > bye{value1;value3} > > hi{value1;value4} > > hi{v

Re: [PHP] preg_replace help

2010-01-26 Thread Kim Madsen
Michael A. Peters wrote on 26/01/2010 14:18: $fixSrch[] = '/\n/'; $fixRplc[] = '[br]'; is what I need except I want it to leave anything between [code] and [/code] alone. I figured it out before but with but I don't even remember what I was working on when I did that and I can't for the li

[PHP] preg_replace help

2010-01-26 Thread Michael A. Peters
$fixSrch[] = '/\n/'; $fixRplc[] = '[br]'; is what I need except I want it to leave anything between [code] and [/code] alone. I figured it out before but with but I don't even remember what I was working on when I did that and I can't for the life of me find it now. -- PHP General Mailin

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Al
On 1/25/2010 10:48 PM, Camilo Sperberg wrote: Hello list :) I have this problem, a certain string can contain the following information: $string = ' hi{value1;value2} bye{value1;value3} hi{value1;value4} hi{value1;value2} bye{value1;value2} '; What I want is to be able to get this result:

Re: [PHP] Re: Enforce a constant in a class.

2010-01-26 Thread Richard Quadling
2010/1/25 Colin Guthrie : > 'Twas brillig, and Richard Quadling at 22/01/10 11:33 did gyre and gimble: >> Hello, >> >> One of the aspects of an interface is to enforce a public view of a >> class (as I see it). >> >> Within PHP, interfaces are allowed to have constants, but you cannot >> override t

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Eric Lee
On Tue, Jan 26, 2010 at 12:02 PM, Angus Mann wrote: > Hi all. > > I'm currently using the phpmailer class from phpmailer.worxware.com to > send datatbase -populated emails to clients. > > At the moment I'm runninng PHP on Windows and using the built-in sendmail > equivalent packaged with XAMPP. I

[PHP] Re: Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-26 Thread Richard Quadling
2010/1/25 Nathan Rixham : > Richard Quadling wrote: >> Hi. >> >> I'm in the process of building a web service which incorporates the >> ability for the server to inform the client that a particular call has >> been superseded by another. >> >> So, cut down (I've removed all the other details), ...

Re: [PHP] If the first four characters are "0000", then do {}

2010-01-26 Thread shiplu
Another technique could be. $s = $mydata->restored; if($s[0]==$s[1] && $s[1]==$s[2] && $s[2]==$s[3] && $s[3]==0){ do_work(); } But I think you got the best solution already. -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://g

[PHP] Migrating legacy code - changing session name

2010-01-26 Thread Rory McKinley
Hello List A client has asked me to migrate a few scripts that have been running merrily under PHP4 to PHP5.2. Part of these scripts have integration with PHPMyAdmin using the single sign-on and so they make use of the following code : session_write_close(); session_name("blah"); session_start();