sha() - how to access this function?
Posted: Wed Jul 21, 2010 3:15 pm
Hi everyone,
Full disclosure: I'm an experienced programming who is relatively new to PHP. Unfortunately, I'm also in a bit of a jam. In short, my boss gave me some PHP code and said, "You have to get this working by Friday." I don't have the luxury to do the proper tutorials, otherwise I wouldn't be rushing to this forum in a bit of a panic.
Here's the problem. The code I'm working with has this line:
When I execute, the compiler gives me this result...
...which I'm interpreting to mean "I don't know what this sha() command is!" If this were C++ code (my home turf), I'd just "man sha," figure out which library I need to add, and then pop in the needed "#include ______" statement at the top of my code. That didn't work for in this case.
Does anyone have any insight?
Many, many thanks in advance!
-P
Full disclosure: I'm an experienced programming who is relatively new to PHP. Unfortunately, I'm also in a bit of a jam. In short, my boss gave me some PHP code and said, "You have to get this working by Friday." I don't have the luxury to do the proper tutorials, otherwise I wouldn't be rushing to this forum in a bit of a panic.
Here's the problem. The code I'm working with has this line:
Code: Select all
$variable1 = sha1("12345678".$user.$passwd);Code: Select all
<br>
<b>Fatal error</b>: Call to undefined function: sha1() in <b>/export/qhome/dude1/script1.php</b> on line <b>38</b><br>Does anyone have any insight?
Many, many thanks in advance!
-P