Url Decoding Snippets


19 September, 2011   

If you leave a URL in the comment form of a WordPress blog, it will be automatically transformed into a hyperlink. If you want to implement the same functionality in your own website or web app, you can use the following code:

PHP code example for redirecting from old URL to new URL

You can use a url shortener with Twitter such as tinyurl.com

23 December, 2015   

It allows you to add your own fonts on the page. To convert to different formats use this service Font2Web.

Assigns the contents of a "url" to the string variable "result".

11 October, 2018   

C++Code Snippets to Write a character using cout

19 February, 2013   

A small function to find the current URL of the page

02 June, 2012   

This code removes all special characters from the given URL and make it SEO friendly.

13 December, 2012   

CSS trick to display the URL from the href attribute after each link

01 February, 2011   

Associative Array Syntax

29 July, 2015   

Apache code example shows how to remove .php from URL

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink

05 August, 2015   

Shows how to access the HTTP headers from a given web adress.

26 May, 2012   

Allows to perform PHP redirection (must be placed before any browser output).

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

Java code example showing here how to send HTTP request & fetching data

18 February, 2012   

CSS code example for a background image repeat vertically (y-axis), horizontally (x-axis), in both directions, or in neither direction.

Place the following code where you would like the button to appear.

Passing in a simple string of text converting it to lowercase and replacing all the spaces with a dash

Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users bookmark their favorite pages. But if you want to provide your visitors with a "Bookmark this page" link they can click you may use the code below: It works in IE, FireFox and Opera. Clicking on the link prompts...