Install LAMP server on Ubuntu 16.10

Using following steps we can intall Apache , MySQL and PHP on Ubuntu 16.10 system.

1. First install Apache server

Open Terminal and write following command
Continue reading “Install LAMP server on Ubuntu 16.10”


Force file download instead of open in browser

We can configure apache servers to force download files instead of shown in browser window. For example if you want to download Image , MP3 file when you click on that file link , you can use following code in .htaccess file.

<FilesMatch "\.(mov|mp3|jpg|png|pdf)$">
 ForceType application/octet-stream
 Header set Content-Disposition attachment

Use WordPress default jQuery UI “datepicker” in your theme

First write following code in template file. These code will include js and datepicker class in the template.

wp_enqueue_style('jquery-ui-css', '');

Continue reading “Use WordPress default jQuery UI “datepicker” in your theme”