H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
/
home
/
ymswebso
/
public_html
/
jamesross
/
includes
/
Nama File / Folder
Size
Action
extra-vars.php
1.085KB
Hapus
Edit
Rename
printmsg.php
0.104KB
Hapus
Edit
Rename
<=Back
<?php $current_year = date("Y"); $current_month = date("F"); $current_month_numeric = date("m"); $current_day = date("d"); $current_time = date("H:i"); $today = date("Y-n-j H:i:s"); // needs to use in created or in modified table field // $current_date = date("Y-n-j"); $ip_address = $_SERVER['REMOTE_ADDR']; //////// functions start /////////// function string_limit_words($string, $word_limit) { $words = explode(' ', $string); return implode(' ', array_slice($words, 0, $word_limit)); } function seoFriendlyURL($str) { $str = rtrim($str); $limit_str = string_limit_words($str, 12); $str_underscore = str_replace('_', ' ', $limit_str); $str_replaced = preg_replace("/[^ \w]+/", "", $str_underscore); $str_replaced_output = preg_replace('!\s+!', ' ', $str_replaced); $str_replaced_final = wordwrap(strtolower($str_replaced_output), 1, '-', 0); //echo "$str_replaced_final"; } //////// functions ends /////////// function curPageName() { return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); } $page_url=curPageName(); $site_url = "http://".$_SERVER['SERVER_NAME']; ?>
Liking