This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preg_match("/^(.+)\.(.+)$/", $file_name, $m); | |
$file_prefix = $m[1]; | |
$file_suffix = $m[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substr_replace($string ,"",-1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? if (basename($_SERVER["SCRIPT_FILENAME"]) == "index.htm"){ ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overflow-y: scroll; | |
overflow-x: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pos = strpos($haystack,$needle); | |
if($pos === false) { | |
// string needle NOT found in haystack | |
} | |
else { | |
// string needle found in haystack | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onmouseover="document.getElementById('id').style.display= 'block';" onmouseout="document.getElementById('id').style.display= 'none';" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function truncateString($str, $max, $rep = '...') { | |
if(strlen($str) > $max) { | |
$leave = $max - strlen($rep); | |
return substr_replace($str, $rep, $leave); | |
} else { | |
return $str; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(window.attachEvent) { | |
window.attachEvent('onload', yourFunctionName); | |
} else { | |
if(window.onload) { | |
var curronload = window.onload; | |
var newonload = function() { | |
curronload(); | |
yourFunctionName(); | |
}; | |
window.onload = newonload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$message_to = "jcampo@quasars.com"; | |
$message_from = "info@byf.com"; | |
$message_subject = "Tax Reminders Test"; | |
$message_body = $test_email; | |
$headers = 'From: '.$message_from. "\r\n" . | |
'Reply-To: '. $message_from . "\r\n" . | |
'X-Mailer: PHP/' . phpversion(); | |
mail($message_to, $message_subject, $message_body, $headers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a, a:link, a:active, a:visited { | |
font-weight: bold; | |
text-decoration: underline; | |
color:#000;} |
NewerOlder