Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      RSA  >  All threads  >  add these lines to avoid undefined index problem when packet ...  >  (Un) Subscribe thread alerts  
Subject:add these lines to avoid undefined index problem when packet ...
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 index problem when packet ...   Reply  
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
}