On May 13, 2011, at 08:34, hoss7 wrote: > i want send email,but i have this error: > > Warning (2): getmypid() has been disabled for security reasons [CORE/ > cake/libs/string.php, line 89] > > > where is my problem
Your problem is that in the version of PHP you're running, getmypid() has been disabled for security reasons, and CakePHP uses getmypid() in its uuid() function in CORE/cake/libs/string.php on line 89. And the uuid() function appears to be used in several places in CakePHP, including the generation of email headers. Either run a version of PHP that has not disabled the getmypid() function, or I guess the alternative is for you to modify the uuid() function so that it doesn't use getmypid(). The purpose of uuid() is just to return a Universally Unique IDentifier, so you could rewrite it to pick some other forms of entropy besides the current process id. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
