check out my password generator:
http://www.jbwebstudios.com/my_apps/password_generator/index.php
let me know what you all think.
info on it?
was built using p4a; php framework
As a programmer, there are no real problems but challenges...ones that we need to overcome. This means that there is a solution for all challenges that one may face. For all the challenges that I have faced, I will share them and their solutions.
Tuesday, February 23, 2010
Password Generator
check out my password generator:
http://www.jbwebstudios.com/my_apps/password_generator/index.php
let me know what you all think.
info on it?
was built using p4a; php framework
http://www.jbwebstudios.com/my_apps/password_generator/index.php
let me know what you all think.
info on it?
was built using p4a; php framework
php get intro from text function
i modified the function to what it is now because it took a long time when used in a loop.
function determineIntroFromString( $string, $length=null ){
$length = ( empty( $length ) || $length < 350 ) ? 400 : $length;
$sentences = explode( ".", $string );
$intro = "";
$index = 0;
$string_length = 0;
foreach ( $sentences as $sentence ){
//echo " --- ".$sentence;
//echo strlen($sentence);exit;
if( $string_length <= $length ){
$intro .= $sentence;
$string_length = strlen( $intro );
//echo " -- ".$string_length;
unset( $sentence );
} else {
break;
}
//unset( $sentence );
}
/* while ( strlen( $intro ) <= $length ){
$intro .= $sentences[$index];
$index++;
}*/
$intro .= ".";
return $intro;
}
function determineIntroFromString( $string, $length=null ){
$length = ( empty( $length ) || $length < 350 ) ? 400 : $length;
$sentences = explode( ".", $string );
$intro = "";
$index = 0;
$string_length = 0;
foreach ( $sentences as $sentence ){
//echo " --- ".$sentence;
//echo strlen($sentence);exit;
if( $string_length <= $length ){
$intro .= $sentence;
$string_length = strlen( $intro );
//echo " -- ".$string_length;
unset( $sentence );
} else {
break;
}
//unset( $sentence );
}
/* while ( strlen( $intro ) <= $length ){
$intro .= $sentences[$index];
$index++;
}*/
$intro .= ".";
return $intro;
}
Subscribe to:
Posts (Atom)