Speakingatphp[tek](Chicago,ILMay14th-17th)IamveryexcitedthatIhavebeenchosentospeakatphp[tek]2013thisMay.Iwillbepresentingtwotalks,thefirstisPHP5.5:TheNewBitsthatIupdatedfrom5.4forSunshinePHP,andwhichwaswellreceived.Thesecondissomethingnewforme,firstIwillbeco-presenting,withtheamazingLigayaTurmelle,somethingthatisaltogethernewtome,andadditionally,itwillbeatalkonMySQL.Sp...
<?php//GetdatafromHTMLform.$addScore1=$_POST['addScore1'];$addScore2=$_POST['addScore2'];$oldScore1=$_POST['oldScore1'];$oldScore2=$_POST['oldScore2'];$newScore1=(int)$oldScore1+(int)$addScore1;$newScore2=(int)$oldScore2+(int)$addScore2;?><h2>OldSores</h2><p><inputtype="text"value="<?=$oldScore1?>"><inputtype="text"value=...
IhavesomethinglikethatwritteninPHP:$signature=md5($tosigndata);Now,IamtryingtoreplicatethisinC#:MD5.Create().ComputeHash(Tools.GetBytes(tosigndata))Butthatgivesmetotallydifferentresult.HowdoIneedtochangemyC#codeinordertomatchPHPhash?PS.Yeah,Iknowthat.ComputeHash()returnsbyte[],butthatdoesn'tchangeanything,itrieddecodingitandit'sstilladifferentstring.Edit:Tools.GetBy...