Remove File Extention From Urls Snippets


Example htaccess snippets to remove File Extention from URLs

07 March, 2011   

Shows how to create a simple file download by using PHP. The content could also be dynamically generated)

Code example using PHP to add/ remove nodes from an XML file

A Java example for Stateless Session Bean With Three Methods

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

15 March, 2015   

How to automize versioning by modifying a line in the AssemblyInfo file.

29 July, 2015   

Apache code example shows how to remove .php from URL

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY...

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY flag...

JavaScript code snippet to Remove the Last Character from a String

Code snippet to remove class after delay in jQuery.

Here is code to emove a specific character from the end of a Excel cell. Replace 'A1' with the cell and '-' with the character you want to remove. I found it very useful.

The following are some useful functions to build URLs within a CGI script, for example to send a HTTP redirection header

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

18 September, 2013   

PHP example for listing directory contents

13 October, 2015   

This function removes all duplicated lines of the given text file.

This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last character from string in PHP.

13 April, 2011   

Reading a file to a string couldn't be easier than using the file_get_contents() function. Simple pass the name of the file (with path) and optional parameters

08 June, 2011   

Did you know that search engine crawlers think that 'www.yoursite.com' and 'yoursite.com' are two different websites!? We need to help the crawlers out and tell them that the two URLs are the same. We can do this with a 301 (moved permanently) redirect. The code below will redirect requests for 'yoursite.com' to 'www.yoursite.com .

30 August, 2015   

Loads the contents of a dir an sorts them by the date of creation.