Clear the browser cache of CSS or JavaScript Using PHP

7 years ago

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

Current Site URL – Codeigniter

To get host url of current server simply replace application\config\config.php [crayon-68b5ad0e4e568561093574/] with [crayon-68b5ad0e4e56d488362762/]  

7 years ago

PHP: fopen error handling

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

7 years ago

Random String PHP

[crayon-68b5ad0e4ea22420402012/] Output the random string with the call below: [crayon-68b5ad0e4ea28614542767/]  

7 years ago

PHP function to make slug (URL string)

Note: from WordPress Use it like this: [crayon-68b5ad0e4ec62289898489/] Code: [crayon-68b5ad0e4ecb3071094301/]  

7 years ago

Include all files with in the folder

[crayon-68b5ad0e4ef2c429349066/]  

7 years ago

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

[crayon-68b5ad0ede85b871605106/] or [crayon-68b5ad0ede868556968567/]  

7 years ago

Print all value of an array – Smarty

[crayon-68b5ad0edee71133538508/]

7 years ago

Receive JSON POST with PHP

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

7 years ago

Adding divs to a foreach loop every 4 times

The output look like: [crayon-68b5ad0ee2898033452215/]     [crayon-68b5ad0ee28a4089224247/]

8 years ago