Forum Moderators: coopster
I cant seem to execute the TestHash.e file plus it doesnt report an error.
<?
$path='/home/virtual/site66/fst/var/www/cgi-bin';
$cmd="$path/TestHash.e CPIHASHKEY $str";
$ret=exec($cmd);
$ret=split(':',$ret);
//Returns the hash
$hash=trim($ret[1]);
return $hash;
?>
I have tested whether the file exists in its path and it does.
Please help.
I finally got the TestHash.e working. The problem was that I was passing a junk encrypted key as the argument. But I wasn't getting an error message either. I had to check the exit status with the system() function to get to the root of the problem. Anyway thanx everyone for the help. First hurdle is over, now moving onto the next one :)
libCcCpiTools.so has to be put in /usr/lib on the server.
And make sure "TestHash.e" has execute permissions(chmod 755) and it has to be uploaded in binary mode(via ftp)
Also I hope you are not making the same mistake as I did that is you need to pass the actual CPIHASHKEY to TestHash.e and not any junk value.
Has anyone come across this yet?
Ross