Clear the browser cache of CSS or JavaScript Using PHP

5 years ago

Other than caching every hour, or every week, you may cache according to file data. [crayon-663e8b89ddc9b636779864/] or use file modification…

Current Site URL – Codeigniter

To get host url of current server simply replace application\config\config.php [crayon-663e8b89dde5a929533478/] with [crayon-663e8b89dde60202163831/]  

5 years ago

PHP: fopen error handling

You should first test the existence of a file by file_exists(). [crayon-663e8b89ddfe9411094621/] or simple solution without exceptions: [crayon-663e8b89ddff1355885562/]  

5 years ago

Random String PHP

[crayon-663e8b89de1f1000625629/] Output the random string with the call below: [crayon-663e8b89de20a793789658/]  

5 years ago

PHP function to make slug (URL string)

Note: from WordPress Use it like this: [crayon-663e8b89de409195593095/] Code: [crayon-663e8b89de411649154010/]  

5 years ago

Include all files with in the folder

[crayon-663e8b89de5ff033849808/]  

6 years ago

How can I remove 3 characters at the end of a string in php?

[crayon-663e8b8a30ea9273028240/] or [crayon-663e8b8a30eb5691922433/]  

6 years ago

Print all value of an array – Smarty

[crayon-663e8b8a310d1014901247/]

6 years ago

Receive JSON POST with PHP

[crayon-663e8b8a311d1721720048/] instead of [crayon-663e8b8a311d6080721979/] It will give you POST data as is. You will be able to decode it using…

6 years ago

Adding divs to a foreach loop every 4 times

The output look like: [crayon-663e8b8a3138e174419291/]     [crayon-663e8b8a31395278917635/]

6 years ago