PHP to ASP ?

From: Date: Mon, 26 Nov 2001 14:00:04 +0000
Subject: PHP to ASP ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75717@lists.php.net to get a copy of this message
Hi ! I work with someone who use ASP :-(( ... Is someone could translate this function to ASP ?? I don't think it's hard, but when you don't know ASP... function encrypt($str) { global $STRCRYPT; $i = strlen($str); $newstr=""; for ($j=0;$j<$i;$j++) { $car = substr($str,$j,1); $car = ord($car); $car = $car + ord(substr($STRCRYPT,$j,1)); $car = sprintf("%03d",$car); $newstr.=$car; } return $newstr; } ---------------------------------------------------------------- EuroVox 4, place Félix Eboue 75583 Paris Cedex 12 Tel : 01 44 67 05 05 Fax : 01 44 67 05 19 Web : http://www.eurovox.fr ----------------------------------------------------------------

« previous php.general (#75717) next »