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-692a5a2b2e194793769475/] with [crayon-692a5a2b2e197560370722/]
You should first test the existence of a file by file_exists(). [crayon-692a5a2b2e229803490272/] or simple solution…
[crayon-692a5a2b2e2c0519701455/] Output the random string with the call below: [crayon-692a5a2b2e2c3646432029/]
Note: from WordPress Use it like this: [crayon-692a5a2b2e35c099278520/] Code: [crayon-692a5a2b2e360662384200/]