Re: [PHP] Character Encoding for em-dash

2010-06-30 Thread Gaurav Kumar
Thanks Tedd, but I cant make this change in the application UI level code for this problem. This application is a SAAS and we have certain quality standards which we need to follow.. Any other suggestion? Thanks, -GK On Sun, Jun 27, 2010 at 3:06 AM, tedd wrote: > At 9:03 PM +0530 6/17/10, Gau

[PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Gaurav Kumar
Hey Richard, Thanks!!! You have resolved my problem.. GK On Wed, Jun 30, 2010 at 7:42 PM, Gaurav Kumar wrote: > Hi All, > > Need help in resolving the below problem- > > > I would like to get the whole comma separated string into an array value- > > 1. $postText = "chapters 5, 6, 7, 8"; > OR >

Re: [PHP] Brandon Rampersad wants to chat

2010-06-30 Thread George Langley
Actually, it's been SEVEN times since 19 May, including today's. Perhaps the List Mom could step in here? George On 10-Jun-10, at 3:07 PM, Ashley Sheridan wrote: Please could you not send out these auto messages Brandon as I believe this is the second time a message has hit both my email ad

[PHP] Exec not functioning

2010-06-30 Thread kronos
Hi, I'm trying to utilize EXEC to have some text from a db query converted to a wav file using 'espeak'. The 'espeak' command works admirably by cli, but no matter what I do, exec does not seem to function on my Linux box, even though safe_mode is off. I've stripped the db query out, and ra

[PHP] Re: Exec not functioning [SOLVED]

2010-06-30 Thread kronos
I forgot that PHP saves stuff in the /tmp directory (in my case /var/www/html/tmp [with permissins/owner set accordingly]. So, it works with: Btw, it sounds pretty awful! On Tue, 29 Jun 2010 17:46:01 -0400, wrote: Hi, I'm trying to utilize EXEC to have some text from a db query conve

Re: [PHP] Integers

2010-06-30 Thread Stephen
On 10-06-30 10:02 PM, David McGlone wrote: Hi again I'm trying to learn about octal numbers and I don't understand this: Binary: 00100010 breakdown: (001)= 1 (000)= 0 (101)=5 (111)=7 I know it's similar to unix permissions, but I'm not understanding where for example: 111 = 7 In base

[PHP] Integers

2010-06-30 Thread David McGlone
Hi again I'm trying to learn about octal numbers and I don't understand this: Binary: 00100010 breakdown: (001)= 1 (000)= 0 (101)=5 (111)=7 I know it's similar to unix permissions, but I'm not understanding where for example: 111 = 7 wikipedia has got me all confused. -- Blessings, David

Re: [PHP] php processing name vs. id field

2010-06-30 Thread Adam Richardson
On Wed, Jun 30, 2010 at 9:16 PM, David Mehler wrote: > Hello, > I've got a php form processing question. I've got a text field like so: > > > Name*: > > > > My question is what is the purpose of the id field? I know the name > field is what php references, but am not sure what id is for? > Th

[PHP] php processing name vs. id field

2010-06-30 Thread David Mehler
Hello, I've got a php form processing question. I've got a text field like so: Name*: My question is what is the purpose of the id field? I know the name field is what php references, but am not sure what id is for? Thanks. Dave. -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Past discussion

2010-06-30 Thread David McGlone
Hi everyone, I have been searching the archives for a past discussion where some software that some folks use to (I think) save code snippets from e-mails for future references or something of such. Does anyone remember that discussion? I am trying to figure out a good way to create my own "wi

Re: [PHP] Re: Is this a bug with date() ?

2010-06-30 Thread Hans Åhlin
A year can have 52 or 53 weeks and it can begin with week nr 1, 52 or 53 check this algorithm http://www.threesides.se/blogg/2010/04/15/date-calculation-algorithm/ ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ ir

Re: [PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Michael Shadle
biggest difference: http://php.net/print print() returns 1, always - which means it's returning a value http://php.net/echo doesn't return anything Sara Golemon's "how long is a piece of string" blog post (http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html which ap

Re: [PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Robert Cummings
Hey Brandon, do you think you could spend some time reading the Google talk manual? It's kind of irritating seeing your "Brandon Rampersad wants to chat" spam on the list repeatedly. As for which is faster... your assertion is right. Cheers, Rob. Brandon Rampersad wrote: Hello guys, i was

Re: [PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Jim Lucas
Brandon Rampersad wrote: > Hello guys, i was just doing some testing and was wondring if echo is faster > than print or print_r. I think since echo is a language construct and > print_r is a function, echo is faster. > > Please let me know. > > Thanks > People in the past have said that echo an

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-30 Thread robert mena
Well, I've captured using wireshark both communications: The one that works POST /XISOAPAdapter/MessageServlet?channel=:Y_BS_SIP_DEV:cc_soap_snd_sip_dev HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "http://sap.com/xi/WebService/soap1.1"; User-Agent: Jak

[PHP] PHP Trick or Not - You Be the Judge

2010-06-30 Thread Brandon Rampersad
Hello guys, i was just doing some testing and was wondring if echo is faster than print or print_r. I think since echo is a language construct and print_r is a function, echo is faster. Please let me know. Thanks -- A Brandon_R Production

Re: [PHP] Re: Is this a bug with date() ?

2010-06-30 Thread Lester Caine
Michael Alaimo wrote: I have found a bug report. This is the correct functionality. Mike I understand that technically there are more than 52 weeks in a year. Well at least google says 1 year = 52.177457 weeks. So I run the command: php> echo date('W' , mktime(0, 0, 0, 1, 1, date('Y'))); 53

[PHP] Brandon Rampersad wants to chat

2010-06-30 Thread Brandon Rampersad
--- Brandon Rampersad wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-b89a7a894d-806ae18504-KOgzrPXRyt_-nvSOA0A6kJ3ATvY You

[PHP] Re: Is this a bug with date() ?

2010-06-30 Thread Michael Alaimo
I have found a bug report. This is the correct functionality. Mike > I understand that technically there are more than 52 weeks in a year. > Well at least google says 1 year = 52.177457 weeks. > > So I run the command: > php > echo date('W' , mktime(0, 0, 0, 1, 1, date('Y'))); > 53 > > As you ca

[PHP] Is this a bug with date() ?

2010-06-30 Thread Michael Alaimo
I understand that technically there are more than 52 weeks in a year. Well at least google says 1 year = 52.177457 weeks. So I run the command: php > echo date('W' , mktime(0, 0, 0, 1, 1, date('Y'))); 53 As you can see the result is 53. Any thoughts on this? Mike -- PHP General Mailing List

Re: [PHP] Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Richard Quadling
On 30 June 2010 15:12, Gaurav Kumar wrote: > Hi All, > > Need help in resolving the below problem- > > > I would like to get the whole comma separated string into an array value- > > 1. $postText = "chapters 5, 6, 7, 8"; > OR > 2. $postText = "chapters 5, 6; > OR > 3. $postText = "chapters 5, 6, 7

[PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Jo�o C�ndido de Souza Neto
Not tested, but I think it should work: preg_match_all('/(\d+),/', $postText, $matches); -- João Cândido de Souza Neto "Gaurav Kumar" escreveu na mensagem news:aanlktikdb_ismnkpomicxzsfzixg4dedznunrcimj...@mail.gmail.com... > Hi All, > > Need help in resolving the below problem- > > > I wou

[PHP] Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Gaurav Kumar
Hi All, Need help in resolving the below problem- I would like to get the whole comma separated string into an array value- 1. $postText = "chapters 5, 6, 7, 8"; OR 2. $postText = "chapters 5, 6; OR 3. $postText = "chapters 5, 6, 7"; What i have done so far is- preg_match('/chapter[s]*[ ]*(\d+

Re: [PHP] form validation code

2010-06-30 Thread Richard Quadling
On 30 June 2010 14:53, Shreyas Agasthya wrote: > http://www.php.net/manual/en/types.comparisons.php > The first table actually gives a very good understanding. > --Shreyas > > On Wed, Jun 30, 2010 at 7:05 PM, Richard Quadling > wrote: >> >> On 30 June 2010 14:23, Daniel P. Brown wrote: >> >    (

Re: [PHP] Array form processing

2010-06-30 Thread tedd
At 4:54 PM -0400 6/29/10, Ron Piggott wrote: I am trying to process a form where the user uses checkboxes: Sharp Stabbing Jabbing When I do: foreach($_REQUEST as $key => $val) { $$key = $val; echo $key . ": " . $val . ""; } The output is: painDesc: Array I need to know the val

RE: [PHP] Login form + User level access

2010-06-30 Thread tedd
At 8:07 PM + 6/29/10, Carlos Sura wrote: Thank you for your answer Ted, You are right, well, I do have my login form, but what I do not understand is how to implement switch statement. switch ($level){ case 0: include ("admin.php"); break; case 1: include ("sales.php"); break; case

Re: [PHP] form validation code

2010-06-30 Thread Shreyas Agasthya
http://www.php.net/manual/en/types.comparisons.php The first table actually gives a very good understanding. --Shreyas On Wed, Jun 30, 2010 at 7:05 PM, Richard Quadling wrote: > On 30 June 2010 14:23, Daniel P. Brown wrote: > >(Hint: isse

Re: [PHP] form validation code

2010-06-30 Thread Richard Quadling
On 30 June 2010 14:23, Daniel P. Brown wrote: >    (Hint: isset != empty) More importantly ... isset != !empty $a = Null; $b = ''; // $c = undefined; $d = 'Hello'; isset($a) = False vs True = empty($a) isset($b) = True vs True = empty($b) isset($c) = False vs True = empty($c) isset($d) = T

Re: [PHP] last modified on a page

2010-06-30 Thread tedd
At 4:41 PM -0400 6/29/10, Paul M Foster wrote: On Tue, Jun 29, 2010 at 03:44:37PM -0400, tedd wrote: At 12:11 AM -0400 6/14/10, David Mehler wrote: Hello, I've got what is probably a simple question. I've got a site with a footer include file. I want to have a section that displays the las

Re: [PHP] form validation code

2010-06-30 Thread Daniel P. Brown
On Wed, Jun 30, 2010 at 09:07, David Mehler wrote: > Hello, > I've been looking at this to long, and am not seeing the issue. When i > had the below php code set to !empty instead of !isset as it is now I > got the value of the name variable echoed back, yet on sql insert that > field, along with

RE: [PHP] Array form processing

2010-06-30 Thread Ford, Mike
> -Original Message- > From: Ron Piggott [mailto:ron.pigg...@actsministries.org] > Sent: 29 June 2010 22:22 > > Am I on the right track? I don't know what to do with the second > "FOREACH" Sort of. > > > foreach($_REQUEST as $key => $val) { > $$key = $val; >echo $key . "

[PHP] form validation code

2010-06-30 Thread David Mehler
Hello, I've been looking at this to long, and am not seeing the issue. When i had the below php code set to !empty instead of !isset as it is now I got the value of the name variable echoed back, yet on sql insert that field, along with all others are empty, though no error is generated, just a bog