Re: Wrong parameter count for imap_open()

From: Date: Wed, 02 Jan 2008 20:03:00 +0000
Subject: Re: Wrong parameter count for imap_open()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266512@lists.php.net to get a copy of this message
On Wed, January 2, 2008 9:00 am, Adam Williams wrote: > I'm running PHP 5.2.4 and getting the error: > > *Warning*: Wrong parameter count for imap_open() in > */var/www/sites/intra-test/contract/login.php* on line *9 > > *My code is: > > $mbox = > imap_open("\"{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\", > \"".$_POST["username"]."\", > \"".$_POST["password"]."\""); // line 9 This creates a single string which LOOKS like what you should have typed in the first place. > but when I echo it out, it looks fine: > > echo "\"{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\", > \"".$_POST["username"]."\", > \"".$_POST["password"]."\""; > > prints: > > "{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX", "awilliam", > "xxxxxxx" You need to END the quote for the Mailbox before you put in a comma to separate the mailbox arg from the username arg. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#266512) next »