Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Al
On 6/19/2010 3:08 AM, Adam Richardson wrote: $before_needle = true Requires 5.3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What am I missing here?

2010-06-19 Thread Rick Dwyer
Hello List. I am completely at a loss for why the line of code below returns the desired value: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI'])); BUT, putting the same line of code on 1 line fails to return anything: $PATH_INFO=

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Daniel P. Brown
On Sat, Jun 19, 2010 at 05:09, Ashley Sheridan wrote: > > A substring() a strpos() should do the trick: Echo echo [sprintf()] -- URGENT: EXTENDED TO SATURDAY, 19 JUNE: $100 OFF YOUR FIRST MONTH, FREE CPANEL FOR LIFE ON ANY NEW DEDICATED SERVER. NO LIMIT! daniel.br...@par

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Ashley Sheridan
On Sat, 2010-06-19 at 10:09 +0100, Ashley Sheridan wrote: > On Fri, 2010-06-18 at 15:03 -0500, Adam wrote: > > > I'm querying data and have results such as a variable named > > $entries[$i]["dn"]: > > > > CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Ashley Sheridan
On Fri, 2010-06-18 at 15:03 -0500, Adam wrote: > I'm querying data and have results such as a variable named > $entries[$i]["dn"]: > > CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx > > > > Basically I need to strip of

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Adam Richardson
On Sat, Jun 19, 2010 at 3:08 AM, Adam Richardson wrote: > On Fri, Jun 18, 2010 at 3:56 PM, Adam Williams < > adam_willi...@bellsouth.net> wrote: > >> I'm querying data and have results such as a variable named >> $entries[$i]["dn"]: >> >> CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Adam Richardson
On Fri, Jun 18, 2010 at 3:56 PM, Adam Williams wrote: > I'm querying data and have results such as a variable named > $entries[$i]["dn"]: > > CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx > > > Basically I need to strip off