Re: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Kevin Kinsey
Alice Wei wrote: Date: Sun, 18 Apr 2010 21:02:29 -0500 From: k...@daleco.biz To: aj...@alumni.iu.edu CC: k...@designdrumm.com; php-general@lists.php.net Subject: Re: [PHP] Mail Function Using PEAR Issues Karl DeSaulniers wrote: Hey Alice, Again, try throwing the MIME in. $headers = 'MIME-Ve

Re: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Karl DeSaulniers
Is there any need for this line if you are using the Errors-to: ? Maybe take it out and see what Errors-to gives you without it. On Apr 18, 2010, at 9:27 PM, Alice Wei wrote: if (PEAR::isError($mail)) echo "" . $mail->getMessage() . OAN - That sendmail script I posted, I know works on L

RE: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Alice Wei
> Date: Sun, 18 Apr 2010 21:02:29 -0500 > From: k...@daleco.biz > To: aj...@alumni.iu.edu > CC: k...@designdrumm.com; php-general@lists.php.net > Subject: Re: [PHP] Mail Function Using PEAR Issues > > Karl DeSaulniers wrote: > > Hey Alice, > > Again, try throwing the MIME in. > > > > $headers

Re: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Kevin Kinsey
Karl DeSaulniers wrote: Hey Alice, Again, try throwing the MIME in. $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; Also: $headers .= 'Errors-to: ' . "\r\n"; Which I suggested on your previous thread. Also, I see you have $from set

Re: [PHP] How to do i18n better?

2010-04-18 Thread Robert Cummings
Andre Polykanine wrote: Hi everyone, I posted this in the PHP-i18n list, however got no answer so trying here). We are making a blog platform (http://oire.org/) which is provided in several languages (currently they are Russian, Ukrainian, and English). Now the i18n process is made as follows: w

[PHP] How to do i18n better?

2010-04-18 Thread Andre Polykanine
Hi everyone, I posted this in the PHP-i18n list, however got no answer so trying here). We are making a blog platform (http://oire.org/) which is provided in several languages (currently they are Russian, Ukrainian, and English). Now the i18n process is made as follows: we set a cookie on the site

Re: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Karl DeSaulniers
Hey Alice, Again, try throwing the MIME in. $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; Karl On Apr 18, 2010, at 10:11 AM, Alice Wei wrote: Hi, After several days, I have rebuilt my system on Linux using Ubuntu, installed PEA

Re: [PHP] PHP include security

2010-04-18 Thread Micky Hulse
On Sun, Apr 18, 2010 at 10:23 AM, Michiel Sikma wrote: > I would prefer to use include() since it runs the code in the same context, > .. > with your data rather than printing it right away. Thanks for the reply Michiel, I really appreciate it. :) For some benchmarks on the different types o

Re: [PHP] Replacing a special character

2010-04-18 Thread Michael Stroh
That did it! Thanks! Michael On Apr 18, 2010, at 2:44 PM, Mari Masuda wrote: > Maybe you could try to assign the return value of preg_replace to a variable > so you can use it later, like: > > $name = preg_replace('/−/','-',$name); > > > On Apr 18, 2010, at 11:38 AM, Michael Stroh wrote: >

Re: [PHP] Replacing a special character

2010-04-18 Thread Mari Masuda
Maybe you could try to assign the return value of preg_replace to a variable so you can use it later, like: $name = preg_replace('/−/','-',$name); On Apr 18, 2010, at 11:38 AM, Michael Stroh wrote: > Thanks for the advice. I've changed the code to use mysql_real_escape_string. > So now it is

Re: [PHP] Replacing a special character

2010-04-18 Thread Michael Stroh
Thanks for the advice. I've changed the code to use mysql_real_escape_string. So now it is $name = mysql_real_escape_string($name); preg_replace('/−/','-',$name); but it's still not replacing the − string. I've also changed the field in the database so that now it is using the collation utf

Re: [PHP] Does PHP support multi-thread ?

2010-04-18 Thread Hans Åhlin
2010/4/18 Angus Mann : > Oh No ! > > Not again ! > > Please !! > > This was the subject of a very long and heated discussion a while ago. > No - it does not support multi threading. > +1 > > - Original Message - From: "ttplayer" > To: "php-general" > Sent: Sunday, April 18, 2010 11:

Re: [PHP] solution

2010-04-18 Thread Michiel Sikma
On 17 April 2010 13:03, Paulo-WORK wrote: > I have reached a solution for my problem with js. > Following all the sugestions and using jquery turned out to be quite > simple. > using .hide( ) and .show( ) i am able to change the #div with Js enabled > content and no js. > > That's the best way t

Re: [PHP] PHP include security

2010-04-18 Thread Michiel Sikma
On 18 April 2010 02:08, Micky Hulse wrote: > Hi Michiel! Thanks for the help, I really appreciate it. :) > > > It depends. What's exactly do you want to prevent? It doesn't seem like a > > .. > > include, say, additional HTML content, use file_get_contents() instead. > > Very good points. My

Re: [PHP] Replacing a special character

2010-04-18 Thread Michiel Sikma
On 18 April 2010 16:46, Peter Lind wrote: > On 18 April 2010 16:40, Phpster wrote: > > > > > > On Apr 18, 2010, at 8:59 AM, Michael Stroh wrote: > > > >> I have this form that people use to add entries into a MySQL database. > >> Recently I've had some users insert − in their entries instead of

[PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Alice Wei
Hi, After several days, I have rebuilt my system on Linux using Ubuntu, installed PEAR and such. Thankfully, when I execute the code, it no longer gives me the error that the class is not found. Yet, when I submit the form now, I can always see the confirmation message telling me that my mes

Re: [PHP] Does PHP support multi-thread ?

2010-04-18 Thread Nathan Rixham
yup, check out forking though for related Phpster wrote: > Not all libraries are thread safe, so no. 2 seconds with a google search > would have given you the same answer. > > Bastien > > Sent from my iPod > > On Apr 18, 2010, at 9:17 AM, "ttplayer" wrote: > >> Hello, everyone, please answer

Re: [PHP] Replacing a special character

2010-04-18 Thread Peter Lind
On 18 April 2010 16:40, Phpster wrote: > > > On Apr 18, 2010, at 8:59 AM, Michael Stroh wrote: > >> I have this form that people use to add entries into a MySQL database. >> Recently I've had some users insert − in their entries instead of - which is >> causing some issues with scripts down the l

Re: [PHP] Replacing a special character

2010-04-18 Thread Phpster
On Apr 18, 2010, at 8:59 AM, Michael Stroh wrote: I have this form that people use to add entries into a MySQL database. Recently I've had some users insert − in their entries ins tead of - which is causing some issues with scripts down the line. I 'd like to replace the − character with -

Re: [PHP] Does PHP support multi-thread ?

2010-04-18 Thread Phpster
Not all libraries are thread safe, so no. 2 seconds with a google search would have given you the same answer. Bastien Sent from my iPod On Apr 18, 2010, at 9:17 AM, "ttplayer" wrote: Hello, everyone, please answer me. Thank you. Does PHP support multi-thread ? -- PHP General Mailing Lis

Re: [PHP] Does PHP support multi-thread ?

2010-04-18 Thread Angus Mann
Oh No ! Not again ! Please !! This was the subject of a very long and heated discussion a while ago. No - it does not support multi threading. - Original Message - From: "ttplayer" To: "php-general" Sent: Sunday, April 18, 2010 11:17 PM Subject: [PHP] Does PHP support multi-th

[PHP] Does PHP support multi-thread ?

2010-04-18 Thread ttplayer
Hello, everyone, please answer me. Thank you. Does PHP support multi-thread ?

[PHP] Replacing a special character

2010-04-18 Thread Michael Stroh
I have this form that people use to add entries into a MySQL database. Recently I've had some users insert − in their entries instead of - which is causing some issues with scripts down the line. I'd like to replace the − character with -. Originally I had something like $name = mysql_escape_

Re: [PHP] compile php 5.3.2 with php-fpm error,HELP ME

2010-04-18 Thread Sharl.Jimh.Tsin
all right,i submit it as a bug into the bugs.php.net Best regards, Sharl.Jimh.Tsin 2010/4/18 Daniel Egeberg : > On Sun, Apr 18, 2010 at 09:47, Sharl.Jimh.Tsin wrote: >> Hi,everyone >> >> i download the php source tarball from php.net. >> and check out lastest version of php-fpm from SVN. >> >>

Re: [PHP] compile php 5.3.2 with php-fpm error,HELP ME

2010-04-18 Thread Daniel Egeberg
On Sun, Apr 18, 2010 at 09:47, Sharl.Jimh.Tsin wrote: > Hi,everyone > > i download the php source tarball from php.net. > and check out lastest version of php-fpm from SVN. > > then,i run the > ./configure *snip* > > it seems to be ok,and run make command.it looks like NO error appears,too > > but

[PHP] compile php 5.3.2 with php-fpm error,HELP ME

2010-04-18 Thread Sharl.Jimh.Tsin
Hi,everyone i download the php source tarball from php.net. and check out lastest version of php-fpm from SVN. then,i run the ./configure --prefix=/usr/local/php --bindir=/usr/local/bin --sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig --enable-embed=shared --enable-fpm --enable-safe-mode --e