[PHP] imap_open with variable fails
Hi, I'm using imap_open and the script works fine on my server with 4.3.11. Now as user with 4.3.10 reported that the script does not work. He finally got it working by replacing my variable-names in the imap_open-command with strings containing exactly the same data (except for the leading slash before the { which I was using together with variables). The statement is @imap_open("\{$host}INBOX",$user,$pwd,OP_HALFOPEN); and host is "80.243.163.14/pop3". I know that /notls can also be appended, but as I said: it works fine when entering these directly into the command, just when using the string-parameter it fails. The error is: "imap_open(): Couldn't open stream" I've spent quite some time now googling around, searching various forums etc., but could not find a solution to this. Would appreciate your help very much! Thanks Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imap_open with variable fails
Hi, just did want to let this sink unanswered, but I see that 6 days means quite a lot of messages piled up. Should have answered earlier, but... Anyway, I think I had tried the "\{" or '{"-combinations as well and it didn't work - but I can't remember exactly and can't reproduce now, since I was working on a user's server there. But the way I finally solved this way to first create a string with the entire command and its arguments in it and then eval() the thing... Thanks Michael "Richard Lynch" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > { } became special characters in PHP strings, at some point... > > You may or may not be able to change a php.ini setting to change that... > I wouldn't have expected it to change from 4.3.10 to 4.3.11, but I don't > really KNOW when it changed. I suck at tracking version numbers and small > changes with them. Swiss cheese memory. > > Or, you should be able to always use \{ inside "" and it should "work" > > You could also change to '' instead of "" and {} would NOT be special > inside ''. > > > > On Wed, May 11, 2005 1:05 am, Michael Baas said: > > Hi, > > > > I'm using imap_open and the script works fine on my server with 4.3.11. > > Now > > as user with 4.3.10 reported that the script does not work. He finally got > > it working by replacing my variable-names in the imap_open-command with > > strings containing exactly the same data (except for the leading slash > > before the { which I was using together with variables). > > > > The statement is > > @imap_open("\{$host}INBOX",$user,$pwd,OP_HALFOPEN); > > and host is "80.243.163.14/pop3". > > I know that /notls can also be appended, but as I said: it works fine when > > entering these directly into the command, just when using the > > string-parameter it fails. > > > > The error is: "imap_open(): Couldn't open stream" > > > > I've spent quite some time now googling around, searching various forums > > etc., but could not find a solution to this. Would appreciate your help > > very > > much! > > > > Thanks > > > > Michael > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Like Music? > http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] imap_open hangs...
Hi, I have a script which works fine for many users, but for some it doesn't. I've been able to narrow it down to the imap_open-Command which just hangs 'forever'. I have verified that the imap-extensions are available, but other than that I have no ideas what's going on there, why it would not respond and what I could possibly do to avoid such errors. I assume something must be missing/wrong in the PHP-setup, i.e. I've had other cases where imap-extensions were included at compile-time, but not loaded due to an error with the RAND_seed symbol etc. - but in all those cases there was at least an error-msg telling you something was wrong. But just silently dying is not a very helpful :( Any ideas anyone? Thanks Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imap_open hangs...
Thanks Buran, > 1. Connection is timing out, and the time limit expired. We're only connecting to locahost here, sorry, forgot to mention. > 2. Firewall is blocking connections The ISP claims to support imap_open for POP3 and ISP, so I would expect him to have sorted that one out. > Other connectivity-related issues (assuming imap_* works correctly) Hmm, imap_alerts() and imap_errors() at least work correctly (I can them before imap_open to make sure they are reset). But other than that I have no idea how to make sure that imap_* works correctly... Cheers Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Looking for CMS advice
Like Clint, I definitely recommend Mambo. Or, to be precise: "the CMS formerly known as Mambo". Recently a split has happened between the core-developers who will continue to develop the system (with much support from the community) - see the new website at http://www.opensourcematters.org/ - and between Miro, the company that had the rights for the name, did some of the original work and recently set up a foundation to support the whole OS-development. However, the way this all happened as well as the terms and conditions of the new foundation caused that split. But regardless of all that dispute, "the CMS formerly known as Mambo" still is a very solid solution and I have no doubt the devs will continue to take good care of it :) Cheers Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imap_open hangs...
> Thanks Buran, ..and apologies for mis-spelling your name, Burhan ;) Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php