Re: PHP to ASP ?

From: Date: Mon, 26 Nov 2001 14:24:48 +0000
Subject: Re: PHP to ASP ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75718@lists.php.net to get a copy of this message
This is a PHP mailing list, I doubt you'll find anyone who knows, or wants to know ASP. Why not use PHP for this, and dump ASP (along with the slow, bug-ridden webserver it runs on [unless you're using Apache::ASP])? On 26 November 2001 9:00, Jean-Arthur Silve wrote: > 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 > ---------------------------------------------------------------- -- Casey Allen Shobe cshobe@softhome.net GCS/CM d+ s+:->+: a-- C++(++++) ULU++++$ P- L+++>++++ E- W++ N++ !o K- w-- !O M V- PS++ PE Y+ PGP>++ t+ 5+ X R>+ tv-- b++ DI+ D---- G++ e h-(*) r--- z--

« previous php.general (#75718) next »