[PHP] IMAP - Moving messages between folders

2002-09-09 Thread N. Pari Purna Chand
Hi all imap gurus out there, I have sruggling for quite some time to get the imap_mail_move() function to work. Imap server : Courier IMAP PHP Version : 4.1.2 where $msg is an array of imap-mailid's which are to be moved from INBOX to $movetofolder. But the above code is not working and is n

Re: [PHP] split() - not working in this case

2002-09-08 Thread N. Pari Purna Chand
Yeah, I have outputted to browser Split() was working fine.. Sorry for the noise on the list. But I have realised that the very moment I posted the mail on the list. /Chandu - Original Message - From: "Chris Wesley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc

[PHP] split() - not working in this case

2002-09-08 Thread N. Pari Purna Chand
I have a string $to = " abcd <[EMAIL PROTECTED]>, efgh <[EMAIL PROTECTED]>" ; I want a function returning an array of indivial names+mailids like from the $to seperated by "," something like $tos[0] = "abcd <[EMAIL PROTECTED]>"; $tos[1] = "efgh <[EMAIL PROTECTED]>"; Now split() in the followin

[PHP] Array - Match

2002-09-07 Thread N. Pari Purna Chand
I have $sub = "abc"; and $subs[0] = "cde"; $subs[0] = "iyu"; $subs[0] = "abc"; .. .. .. $subs[50] = "xyx"; How to find whether $sub matches with any one of $subs[$i] I have used a for loop but it is returning true when $subs[$i] = "xabc". /Chandu

Re: [PHP] replacing \n with

2002-09-06 Thread N. Pari Purna Chand
Bothe of us got the same problem at same time :-) - Original Message - From: "David T-G" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 9:28 PM Subject: [PHP] replacing \n with -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] \n to Problem

2002-09-06 Thread N. Pari Purna Chand
I have a small problem in converting a plain text to html. say $text = "PHP Rocks"; Observe the '\n', When I call the converttohtml function which I wrote ( see bottom ) $html = converttohtml($plaintext); The $html I'm getting is "PHP Rocks"; Observe the '\n' still exists, What is the way to

[PHP] What's the trick ?

2002-08-25 Thread N. Pari Purna Chand
Hi guys, Am writing a web based mailclient (obviously with PHP+IMAP), In the 'ReplyMail' script, inorder to add the "> " string at the beginning of everyline, I used the following code, ", htmlspecialchars(trim(imap_body($mbox, $msg; ?> This is giving an output with one additional \n in th

Re: [PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facin

Re: [PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facin

[PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
Hi guys, I am facing a strange problem, php's mail() function is not working when a php page is executed thru apache, but the same page which has mail() function is working fine and is sending mails when php is used as a scripting language in shell. I'm using xmail's sendmail and xmail as MTA on

[PHP] Refreshing session variables

2002-07-18 Thread N. Pari Purna Chand
Hi guys, I got a problem with refreshing session variables. When the following code is run , for the first time both $z and $secretstring are showing same values. But when page is refreshed, the $secretstring variable is still having the old value no matter how many times I click refresh. Am I

[PHP] Problem with special characters

2002-03-24 Thread N. Pari Purna Chand
When a form is submitting data to another php page it is sending specialcharacters with escape sequences added. Ex : & when i do an echo $var1; in the submitted php page it is showing "c:\\programfiles\\" instead of "c:\programfiles\" Howto overcome this ? /Chandu -- PHP General Mailing

[PHP] Cannot Find php binary

2002-03-19 Thread N. Pari Purna Chand
Hi all I have compiled php on a slack box ./configure --with-apxs=/usr/local/apache/bin/apxs .. make && make install everything Fine and .php pages are being parsed with php when called thru webserver(apache). But I can not find any binary named "php" which I need to run php scripts from she

Re: [PHP] PHP already build but '--without -mysql'

2001-09-25 Thread N. Pari Purna Chand
Augusto Cesar wrote > I just instaled a Linux, but php is already working > but without mysql. > What should I do? How can I rebuild again? I can't understand u'r question, May be u are asking how to build php with mysql support, First install mysql get php4.x src, ../configure --wit

Re: [PHP] Server Setup

2001-08-29 Thread N. Pari Purna Chand
I have never used a binary version (rpm or tar) as I use slackware. Both PHP and Mysql have been recently added to the distribution.So I have been using src all the time. U'll certainly have some performance gain by compiling the src. But the default Redhat 7.1's php distribution is very

[PHP] PHP for APACHE 2.x API

2001-07-03 Thread N. Pari Purna Chand
Are there any pathches sort of availabe for php 4.0.x so that I can compile php4 for Apache 2.0.x beta regards Chandu

[PHP] Compiling PHP with pgsql

2001-07-03 Thread N. Pari Purna Chand
Hi I am able to Successfully compile PHP 4.0.6 with imap and pgsql as an Apache DSO. But after make and make install Apache is not restarting saying that it cannot find libpq.so.2 So I copied the libpq.so.2 from /usr/local/pgre/lib/ to /var/lib/apache/libexec but still apache wont restart. I'm