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-68bd40c83a402031969874/] with [crayon-68bd40c83a409712981487/]
You should first test the existence of a file by file_exists(). [crayon-68bd40c83aa73054325608/] or simple solution…
[crayon-68bd40c83ae63860723614/] Output the random string with the call below: [crayon-68bd40c83ae6a486228520/]
Note: from WordPress Use it like this: [crayon-68bd40c83b5e7276297635/] Code: [crayon-68bd40c83b5ee349479951/]