Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2008, 04:07 AM
troy's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default How do I set MD5(?) in ini file? Must I escape?

This works:
PHP Code:

$authAdapter
->setCredentialTreatment('MD5(?)'); 
But I like to set it in the config.ini file and I guess becaouse of the question mark it doesn't work. Is there a way to escape that?
Code:
accounts.CredentialTreatment = MD5(?)
PHP Code:

if (null !== $registry->config->accounts->CredentialTreatment) {
            
$this->_credentialTreatment $registry->config->accounts->CredentialTreatment;
        }
$authAdapter->setCredentialTreatment($this->_credentialTreatment); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:19 PM
Junior Member
 
Join Date: Apr 2008
Posts: 7
Default

Hey, look carefully what you trying to do.

The function setCredentialTreatment expect strings why you convert it to php code in the ini file.

You just need to defined it as string:

Code:
accounts.CredentialTreatment = 'MD5(?)'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 04:48 PM
troy's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default

Got it, thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-21-2008, 02:59 AM
troy's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default

Actually I am getting a warning with that:
Code:
accounts.CredentialTreatment = 'MD5(?)'

Code:
Warning: Error parsing /var/www/pzzazz/zend/config.ini on line 36 in /var/www/pzzazz/zend/library/Zend/Config/Ini.php on line 108
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-22-2008, 07:24 AM
Junior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 8
Question Hmmm

Get rid of the single quotes, then try

PHP Code:
$this->_credentialTreatment $dbAdapter->quote($registry->config->accounts->CredentialTreatment); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:49 AM.