hi ,
i want to know which is the best shorten url script in the market " FREE as well as PAID "
thanks
Marshal
hi ,
i want to know which is the best shorten url script in the market " FREE as well as PAID "
thanks
Marshal
If you want to shorten a URL, you either use only a .htaccess file or a combination of a .htaccess file and a PHP script.
The basic principle:
- Either admins or visitors (I don't know why you need to shorten URL's, perhaps as service or for usage on your own site) can enter a URL in some kind of form,
- When the form is submitted:
first it is checked whether the URL already exists, if so display the already generated short URL (e.g. tinyurl.com/1c2).
If the URL does not yet exist in the database, insert the URL into the database, then retrieve the last database entry's ID (this is either in hexadecimal or decimal) and then show the created URL to the user.
- Your .htaccess file should be something like this:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([A-Za-z0-9]+) /redirect.php?turl=$1 [NC]
- And then you have redirect.php that retrieves the turl from the database, and then directs the user to the original URL (with the Header() function for example)
If you do not have the programming experience to do the above, either hire someone or find a shorten url script somewhere (although they do not grow on trees)
See the following link:
http://www.google.nl/search?q=shorten+url+script
~G
thanks for your reply though i never tried it .. but let me do it ;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.