PHP Classes

add these lines to avoid undefined index problem when packet ...

Recommend this page to a friend!

      RSA  >  All threads  >  add these lines to avoid undefined...  >  (Un) Subscribe thread alerts  
Subject:add these lines to avoid undefined...
Summary:Package rating comment
Messages:1
Author:falken knight
Date:2013-07-16 11:35:35
 

falken knight rated this package as follows:

Utility: Not sure
Consistency: Good
Documentation: Sufficient
Examples: Good

  1. add these lines to avoid undefined...   Reply   Report abuse  
Picture of falken knight falken knight - 2013-07-16 11:35:35
add these lines to avoid undefined index problem when packet is small the nfixed length in function encrypt before for loop with $j
$currentlength=strlen($packet);

if($currentlength<$s || $currentlength>$s){ //Check if the String is Exact Length to avoid undefined index error
$s=$currentlength; //if current packet length is small then
}