RE: [PHP] get current php locale

2008-07-27 Thread Jay Blanchard
[snip] is there a way to get the current locale being used by php and the encoding it uses? [/snip] Do you mean the locale where the computer connecting to the service is using PHP? Remember, PHP is server side and has no way of gathering data from a 'local' machine unless coupled with something l

[PHP] Problem with using array_diff and array_combine

2008-07-27 Thread Richard Kurth
I hope I can explain what I am trying to do. I have two tables the first one has the custom form elements formelements_id formelements_field_type formelements_field_caption members_id 35 texttest8 36 texttest2 8 The second one has the customer id and the field value

[PHP] SOLUTION [Fwd: Start/Stop Service from program php]

2008-07-27 Thread opc
In the /var/log/secure i can see "sudo: apache : sorry, you must have a tty to run sudo; TTY:unknown" So, i edit line and comment in visudo to next ### Default requiretty And, eureka, work fine from a web page Thanks all Mensaje original --

Re: [PHP] Start/Stop Service from program php

2008-07-27 Thread Daniel Brown
On Sat, Jul 26, 2008 at 11:48 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Generally, apache runs as www-data. What was the output of the command? Actually, Apache generally runs (in order) as nobody, apache, httpd, or daemon. Some distros (such as Ubuntu) or control panel installations (s

Re: [PHP] Regular Expression help need

2008-07-27 Thread James Dempster
On Fri, Jul 25, 2008 at 1:08 PM, Shelley <[EMAIL PROTECTED]> wrote: > Hi Richard, > > Not exactly actually. > > What I mean is: > Before: hi Richard>, & good morning< > After: hi Richard>, & good morning< > > I hope it's clear now. > > On Fri, Jul 25, 2008 at 7:53 PM, Richard Heyes <[EMAIL PROTE

Re: [PHP] Regular Expression help need

2008-07-27 Thread Richard Heyes
> Before: hi Richard>, & good morning< > After: hi Richard>, & good morning< By the sounds of it negative look ahead assertions may be of some help. Or look behind assertions. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt