[PHP] observer pattern

2011-05-18 Thread Ken Guest
Lo, so, I'm wondering - how many of you use the observer pattern in php; and if so, do you implement it 'standalone' or with the spl classes? Is there any particular advantage to doing it "your way"; whichever your way is? Ken -- http://blogs.linux.ie/kenguest/ -- PHP General Mailing List (ht

Re: [PHP] Parsing a simple sql string in php

2011-05-06 Thread Ken Guest
On Fri, May 6, 2011 at 10:05 AM, Ashley Sheridan wrote: > Hiya, has anyone had any experience with parsing a string of sql to break it > down into its component parts? At the moment I'm using several regex's to > parse a string, which works, but I'm sure there's a more elegant solution. > > The

Re: [PHP] Code formatter

2011-02-02 Thread Ken Guest
replies inline... On Wed, Feb 2, 2011 at 3:23 PM, Hansen, Mike wrote: > > > > -Original Message- > > From: ken.gu...@gmail.com [mailto:ken.gu...@gmail.com] On > > Behalf Of Ken Guest > > Sent: Monday, January 31, 2011 3:26 PM > > To: Hansen, Mi

Re: [PHP] Code formatter

2011-01-31 Thread Ken Guest
On Mon, Jan 31, 2011 at 8:27 PM, Hansen, Mike wrote: > I've got an application that I'm fixing up and I'd like to run it through a > code formatter. Is there something like Perl Tidy for PHP? If so, what are > you experiences with it. No prob running it on the command line. It'd be > great if it

Re: [PHP] Centralizled Authentication

2010-12-02 Thread Ken Guest
On Thu, Dec 2, 2010 at 8:06 AM, AmirBehzad Eslami wrote: > Dear list, > > We have dozen of applications, mostly written in PHP and Python. > They're distributed on different servers, but i'm trying to integrate them > somehow. > > Each application has its own users. > Is there a way to store all u

Re: Re[2]: [PHP] Open Source PHP/ mySQL Project Management

2010-11-12 Thread Ken Guest
With the exception of some work-mandated systems such as fogbugz, I've used mantis successfully for quite a long time. On Fri, Nov 12, 2010 at 1:09 AM, Andre Polykanine wrote: > Hello Jonathan, > > I tried to use Mantis, however it didn't send e-mails properly so I > gave up. > -- > With best re

Re: [PHP] Chat

2010-11-10 Thread Ken Guest
> On Tue, 2010-11-09 at 16:51 +0100, Dušan Novaković wrote: >> >> >>> Hello there, >>> >>> I have to make chat for website that has around 10 000 users (small >>> social network). So before I start, I would like to hear different >>> opinions. Important thing is to have in mind that in one moment y

Re: [PHP] Re: Looking for an open-source project

2010-10-25 Thread Ken Guest
On Mon, Oct 25, 2010 at 7:57 PM, Colin Guthrie wrote: > 'Twas brillig, and Mert Oztekin at 25/10/10 13:23 did gyre and gimble: > > I am looking for an open-source project to help and make some fun. Anyone > has suggestions? > > How about helping out Zend Framework, adding useful classes for vario

Re: [PHP] google maps API

2010-08-23 Thread Ken Guest
Please consider using the OpenLayers API instead ( http://openlayers.org/ and http://openlayers.org/dev/examples/ for examples) as it will also allow end-users to choose a OpenStreetMap layer ( http://www.openstreetmap.org/ ) to be displayed which may render more up-to-date details than are availa

Re: [PHP] Unit testing in PHP

2010-06-17 Thread Ken Guest
On Thu, Jun 17, 2010 at 10:51 AM, wrote: > Hi, > > What do you use for unit testing in PHP? phpUnit, SimpleTest or any other? > > Ages ago, when it was new and shiny I did use SimpleTest. Now I mostly use phpunit - though where necessary (for example if I'm patching a PEAR package that uses them)

Re: [PHP] Irish PHP User Group meeting tonight

2010-04-28 Thread Ken Guest
On Wed, Apr 28, 2010 at 3:38 PM, Daniel Brown wrote: > On Wed, Apr 28, 2010 at 05:47, Ken Guest wrote: >> Hi. >> Just to let any of ye know that might be interested, there's a php.ie >> meeting on tonight in Dublin - in the Longstone pub on Townsend Street &g

[PHP] Irish PHP User Group meeting tonight

2010-04-28 Thread Ken Guest
Hi. Just to let any of ye know that might be interested, there's a php.ie meeting on tonight in Dublin - in the Longstone pub on Townsend Street starting at eight o'clock. It's located where the red diamond is on this map: http://www.openstreetmap.org/?mlat=53.34595&mlon=-6.25559&zoom=16&layers=B0

Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Ken Guest
you have to install the net_smtp package, simply with this command: $ pear install net_smtp-1.4.2 (which will explicitly install version 1.4.2 of Net_SMTP) If that doesn't work. for whatever reason, you could download the package manually from http://pear.php.net/package/Net_SMTP/download and ins

Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Ken Guest
The PEAR Mail package does not fall back from one mechanism to another if the first fails. On Tue, Apr 20, 2010 at 9:16 PM, Ashley Sheridan wrote: > On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: > >> On 20 April 2010 20:17, Alice Wei wrote: >> > >> >> From: peter.e.l...@gmail.com >> >> D

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Ken Guest
On Tue, Apr 20, 2010 at 2:10 AM, David McGlone wrote: > On Mon, 2010-04-19 at 08:25 -0400, Alice Wei wrote: > >> I have not changed any of my SMTP settings since my new installation of >> PHP with Pear. So, I am not sure what the settings are supposed to be. >> Would I need to install anything els

Re: [PHP] Array to csv or excel in php

2010-04-19 Thread Ken Guest
For non-simple data I have been using PEAR's File_CSV package. It's proven itself very useful in regards to not having to determine in my own code whether something needs to be quoted etc etc - especially if the output CSV needs to be wholly RFC 4180 compliant. The documentation of it is rather mi