Mailinglisten-Archive |
>if( getenv( "WINDIR" ) ) {
> function crypt( $string, $salt = "" ) {
>
>srand( time() );
> if( $salt == "" ) $salt = substr( md5( uniqid( rand()
>) ), 0, 2);
> return exec("perl -e \"print crypt('$string', '$salt');\"");
>
> }
>}
Warscheinlich ist der PATH nicht richtig gesetzt.
Was sagt denn: ?
<?php
if( !function_exists("crypt") )
{
function crypt( $string, $salt = "" )
{
srand( time() );
if( $salt == "" ) $salt = substr( md5( uniqid( rand() ) ), 0, 2);
return exec("c:\perl\bin\perl -e \"print crypt('$string', '$salt');\"");
}
}
print crypt("test");
?>
Daniel
php::bar PHP Wiki - Listenarchive