echo substr("abcabcabc", 0, -3);
or
echo substr($string, 0, strlen($string) - 3);
Other than caching every hour, or every week, you may cache according to file data.…
To get host url of current server simply replace application\config\config.php [crayon-6633d326503a4672582607/] with [crayon-6633d326503ac637446893/]
You should first test the existence of a file by file_exists(). [crayon-6633d3265059a298625808/] or simple solution…
[crayon-6633d3265075b508008503/] Output the random string with the call below: [crayon-6633d32650763926613412/]
Note: from WordPress Use it like this: [crayon-6633d32650986193406575/] Code: [crayon-6633d3265098d088257468/]