[PHP] Mail_Mime: undefined method Mail_mimePart::encodeHeader()
Hello everyone. I'm developing a mailing list manager, using the package Mail_Mime. Everything works fine, but when I try sending an e-mail get the following error: Fatal error: Call to undefined method Mail_mimePart:: encodeHeader () in / home / devised / php / Mail / mime.php on line 1316 I don't know if it's a bug or error in my own code, I don't think it's so, because the error comes from the library mime.php and I dare not to modify the code. I hope and give me a quick solution. Thank you.
Re: [PHP] Variable variables into an array.
On Tue, Aug 10, 2010 at 12:23 PM, Richard Quadling wrote: > On 10 August 2010 16:49, Jim Lucas wrote: >> Richard Quadling wrote: >>> >>> Hi. >>> >>> Quick set of eyes needed to see what I've done wrong... >>> >>> The following is a reduced example ... >>> >>> >> $Set = array(); >>> $Entry = 'Set[1]'; >>> $Value = 'Assigned'; >>> $$Entry = $Value; >>> print_r($Set); >>> ?> >>> >>> The output is an empty array. >>> >>> Examining $GLOBALS, I end up with an entries ... >>> >>> [Set] => Array >>> ( >>> ) >>> >>> [Entry] => Set[1] >>> [Value] => Assigned >>> [Set[1]] => Assigned >>> >>> >>> According to http://docs.php.net/manual/en/language.variables.basics.php, >>> a variable named Set[1] is not a valid variable name. The [ and ] are >>> not part of the set of valid characters. >>> >>> In testing all the working V4 and V5 releases I have, the output is >>> always an empty array, so it looks like it is me, but the invalid >>> variable name is an issue I think. >>> >>> Regards, >>> >>> Richard. >>> >>> NOTE: The above is a simple test. I'm trying to map in nested data to >>> over 10 levels. >> >> For something like this, a string that looks like a nested array reference, >> you might need to involve eval for it to "derive" that nested array. >> > > I'm happy with that. > > It seems variable variables can produce variables that do not follow > the same naming limitations as normal variables. > It would seem so. If eval() works, can you rearrange the strings a little to make use of parse_str() and avoid the use of eval()? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable variables into an array.
On 10 August 2010 16:49, Jim Lucas wrote: > Richard Quadling wrote: >> >> Hi. >> >> Quick set of eyes needed to see what I've done wrong... >> >> The following is a reduced example ... >> >> > $Set = array(); >> $Entry = 'Set[1]'; >> $Value = 'Assigned'; >> $$Entry = $Value; >> print_r($Set); >> ?> >> >> The output is an empty array. >> >> Examining $GLOBALS, I end up with an entries ... >> >> [Set] => Array >> ( >> ) >> >> [Entry] => Set[1] >> [Value] => Assigned >> [Set[1]] => Assigned >> >> >> According to http://docs.php.net/manual/en/language.variables.basics.php, >> a variable named Set[1] is not a valid variable name. The [ and ] are >> not part of the set of valid characters. >> >> In testing all the working V4 and V5 releases I have, the output is >> always an empty array, so it looks like it is me, but the invalid >> variable name is an issue I think. >> >> Regards, >> >> Richard. >> >> NOTE: The above is a simple test. I'm trying to map in nested data to >> over 10 levels. > > For something like this, a string that looks like a nested array reference, > you might need to involve eval for it to "derive" that nested array. > I'm happy with that. It seems variable variables can produce variables that do not follow the same naming limitations as normal variables. -- Richard Quadling. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable variables into an array.
Richard Quadling wrote: Hi. Quick set of eyes needed to see what I've done wrong... The following is a reduced example ... The output is an empty array. Examining $GLOBALS, I end up with an entries ... [Set] => Array ( ) [Entry] => Set[1] [Value] => Assigned [Set[1]] => Assigned According to http://docs.php.net/manual/en/language.variables.basics.php, a variable named Set[1] is not a valid variable name. The [ and ] are not part of the set of valid characters. In testing all the working V4 and V5 releases I have, the output is always an empty array, so it looks like it is me, but the invalid variable name is an issue I think. Regards, Richard. NOTE: The above is a simple test. I'm trying to map in nested data to over 10 levels. For something like this, a string that looks like a nested array reference, you might need to involve eval for it to "derive" that nested array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] /status page of php-fpm 5.3.3
Hello, I am using PHP 5.3.3 compiled as PHP-FPM. My Apache is using mod_fastcgi to connect to PHP-FPM and everything works as expected. Unfortunately I don't know how to forward request http://localhost/status to PHP-FPM so that I will see the status page of PHP-FPM. I found only NGINX configuration http://forum.nginx.org/read.php?3,56426,56578. Could you pls. help me to fix this configuration ? FastCgiExternalServer /opt/php-5.3.3/bin/www -socket /dev/shm/fpm-www.socket -idle-timeout 900 ScriptAlias /php-bin/ /opt/php-5.3.3/bin/ SetHandler php-fastcgi Action php-fastcgi /php-bin/www I was trying something like: SetHandler php-fastcgi Action php-fastcgi /php-bin/www
[PHP] Variable variables into an array.
Hi. Quick set of eyes needed to see what I've done wrong... The following is a reduced example ... The output is an empty array. Examining $GLOBALS, I end up with an entries ... [Set] => Array ( ) [Entry] => Set[1] [Value] => Assigned [Set[1]] => Assigned According to http://docs.php.net/manual/en/language.variables.basics.php, a variable named Set[1] is not a valid variable name. The [ and ] are not part of the set of valid characters. In testing all the working V4 and V5 releases I have, the output is always an empty array, so it looks like it is me, but the invalid variable name is an issue I think. Regards, Richard. NOTE: The above is a simple test. I'm trying to map in nested data to over 10 levels. -- Richard Quadling. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Google spreadsheet curl
On 2010/08/10 6:24, ioan...@btinternet.com wrote: I have uploaded Zend to my site but the files within the package do not seem to find each other: I solved this by correcting the include path (should be to the library folder (with no trailing slash)). I get as far as a menu offering to list docs, query or upload. However, clicking these options doesn't do anything, but I will take up the issue with a Zend group. Unless anyone here knows an easier way to curl download a google spreadsheet...? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php