frost Posted September 21, 2007 Share Posted September 21, 2007 I am looking at an old script for someone and i came across a strange function in the login: thepassword = password('$password') I can't seem to find a password function so I am wondering what the heck this thing is? I tried echo password('$password'); and I get - Fatal error: Call to undefined function password() Thanks in advance for assistance. Quote Link to comment https://forums.phpfreaks.com/topic/70219-solved-strange-function/ Share on other sites More sharing options...
pocobueno1388 Posted September 21, 2007 Share Posted September 21, 2007 Are there any files included? The function could possibly be in one of those files. When you take out: echo password('$password'); Do you get an error in the code, or does it work fine? Quote Link to comment https://forums.phpfreaks.com/topic/70219-solved-strange-function/#findComment-352689 Share on other sites More sharing options...
frost Posted September 21, 2007 Author Share Posted September 21, 2007 I searched all of the files for "password" and checked each result, nada. the error goes away after I take away the echoed statement. Quote Link to comment https://forums.phpfreaks.com/topic/70219-solved-strange-function/#findComment-352691 Share on other sites More sharing options...
frost Posted September 21, 2007 Author Share Posted September 21, 2007 I finally cracked it, password() is a mysql function. I took it out and replaced it with md5 and now things are working nice. This might be moved over the the sql forum? Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/70219-solved-strange-function/#findComment-352693 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.