Home / Free Stuff / Page 4

Free Stuff

URL Rewriting, SEO friendly URL with htaccess mod_rewrite

Most of the peoples know that why do we using .htaccess file and what is the importance of this .htaccess file for your website, Here in this post you get know about the importance on .htaccess file for your website and some helpful .htaccess tips for your website.

So why we use .htaccess file?

If we are looking to the SEO(Search Engine Optimization) side for your website then .htaccess file is one of the most important factor for your website, lets take an example of URL Rewriting. Why do we need the URL Rewriting for our website? It’s simple; If you noticed the google search results, take a look on the image.

Random password generator with php

In this post we are just creating a PHP function that provide us a random password string. This Password string is the combination of small and capital alphabets and digits, that help us to generate random password string. To generate the random password we are using here `mt_rand()` a PHP function. We can also use `rand()`, because both the functions provide the random strings but `mt_rand()` providing four time better random string then `rand()` function.

Get element on event with jquery

What If we apply an event on multiple element? Yes in this post we are talking about to get the element on particular event. Let’s say we have more then one element and on these elements we want the click event. But now how do we detect the clicked element. In the given example, i just talking two input fields, with different name and id. And apply the click event on both elements.

Here is the HTML Example:

Create tab using jquery and css

Creating tab is very simple with the use of CSS and JQuery. As We know that JQuery is the most popular JavaScript Library. In this Post you can find all the stuff that you need to creating tab. Well if we talking about why we using tab, because with the use of tab we can provide more data or introduce more stuff about the website and divide that stuff in separate tabs. Each Tab contain the relative data or HTML Stuff.

AS you see in the below HTML section, that i have used li markup, which contain the tabs, Tab 1 and Tab 2. And below div with i also set two div which contain the separate tab data. Now you have to play with the CSS that gives the look of tabs to this HTML section. And you will get the CSS, just below the HTML Section.

Base64 encoding format for images

Today we are taking about the new base64 encoding format for displaying the image or a collection of images. If you have the images with large size then it will take more time to load on the page, base64 encoding provide you the string which will contain all the image data, and load in minimum time on the page. Actually base64_encode() represent the binary data into into an ASCII string format. As you see google also uses the string format for the images to prevent from the server load. You will use this base64 encoded string in ‘img’ tag something like this: