Escape $ sign in a password??

Discussion in 'PHP' started by 123GoToAndPlay, Apr 18, 2008.

  1. #1
    Hi there,

    I am trying to make an auto login for my wordpress, but now i am stuck with something basic.

    
    $username = "test";
    $passwd2 = "$P$BWf......wVEO2EP13.lL";
    WP_Integration2::wp_login( $username, $passwd2);
    
    class WP_Integration2 {
    
    	function wp_login( $userid, $pass)
    	{	
    	print "Password is: ".$pass;
    		}
    }
    
    Code (markup):
    But password is just gives .lL.

    How do is escape the $ signs in the stored password??

    regards
     
    123GoToAndPlay, Apr 18, 2008 IP
  2. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Use single quotes and it won't parse the $
    Or I think you can escape with a \
     
    m0nkeymafia, Apr 18, 2008 IP