WordPress file upload with AJAX

In this tutorial we will see how we can achieve wordpress file upload with ajax. The use case is that we want to have a form in frontend that will be accessed by visitors. These visitors will not be authenticated. The form will send all the form data along with the files that are uploaded, […]

A simple way to encrypt/decrypt data in php

In this post, we will focus on how can we encrypt/decrypt store (text/JSON) using PHP. This may be useful in cases where we need to store and retrieve sensitive data in filesystem instead of a database. We will be seeing only the encryption and decryption portion. The generated content can be saved in file using […]

Copy to clipboard using javascript without any plugin

Copy to clipboard using javascript, this is the topic that we are going to explore in this post. The solution we will discuss here will use native javascript and no third party tool. As the solution is bare minimum code snippet, it’s browser support will be limited. The way this solution for Copy to clipboard […]

Replace HTML audio tags with jPlayer

In This post we are going to take a look at how we can replace html audio tags with jPlayer. jPlayer is a popular jQuery player that provides consistent interface to play audio and video files in web page. This can be used as an alternative to default HTML5 audio and video tags in case […]

Eliminate render blocking javascript and defer parsing of js

Why is it important to Eliminate render blocking javascriptYou know your website needs to be fast. Even if the users with slow Internet connection don’t matter much to you, you should consider the speed optimization of your website because it affects your search engine rankings and these rankings obviously reflect on your site’s traffic. One […]

Create extract zip files using php

Uploading and downloading files to and from web servers is a common task in web development environment. This task is simple and straight forward as long as we have to process few files or have cPanel access, in which case we can upload the archived files and extract them on server. However, when we have […]

Make hyperlinks in ckeditor open in browser

In this post, we are going to see how we can make hyperlinks in ckeditor clickable. Normally, ckeditor prevents the hyperlinks to open in the edit mode to enable proper formatting. But, sometimes, users may want the links to open in browser. This can be accomplished by following snippet How to make hyperlinks in ckeditor […]

Git src refspec does not match any error

Cloning a branch of a git repository (particularly non master ones) and then pushing your changes to the same can result into this error Resolve src refspec does not match any error This error can be resolved by pushing using following command where <branch-name> is the name of the branch you are pushing to.

How to download a website in linux

To download a website in linux is quite easy process. The inbuilt wget tool can get the job done in a hassle free manner. Moreover, this tool comes with a number of optional parameters to configure the download process. How to download a website in linux To download a website using wget, open terminal and […]

1 2 3 4