Click to See Complete Forum and Search --> : unknown function


zbangee
12-17-2004, 07:56 AM
guys i need your help again :)
i've got a problem i have a little login script that uses for crypting the password the sha1 function...
the script works ok on my machine a windows based computer... but when i try to upload it to a web hosting server ( a debian 3.0 stable server with php 4.1.3 and with the additional php4-mhash library instaled )

The problem is that when i try to execute the script it gives me an error like: "Fatal error: Call to undefined function: sha1() in ..." and gives me the line that i used the sha1 function...
Any ideea?

btw the library "libdigest-sha1-perl" is also installed...
thanks.

eoghain
12-17-2004, 07:08 PM
Just because the library is installed on the machine doesn't mean that PHP was compiled to use it, which is usually the case when you get that error.

laserlight
12-17-2004, 11:31 PM
Actually, the clue is PHP 4.1.3
sha1() dates from PHP 4.3.0