Tagphp

Create thumbnail image in codeigniter

Adding the following method as custom helper file and check the below sample.

Sample:

Remove directory and its sub folders & files in codeigniter

We can extend the core directory helper.  Creating a new file as MY_directory_helper.php and add the following code in helper file to remove directory and it’s sub folders &  files.

 

Remove index.php in codeigniter using htaccess

Add the following code in htaccess file and place this in project root directory.

 

 

Perform ajax call in codeigniter

You can simply add the following jquery code to perform ajax using codeigniter

 

Clear APC cache in Apache using PHP

The following code will clear the apc cache using PHP

 

© 2019 Asik Blog

Theme by Anders NorenUp ↑