Peace To World

Site Pages

1425days since
Independence Day

1569days since
Pakistan Day

1584days since
My Birth Day

1681days since
Eid Ul Adhha

Looong URL's Shrtnd

(((((((((((((((((((((((((((((((((((( TESTED )))))))))))))))))))))))))) ((((((((((((((((((((((((( RESULTS ))))))))))))))))))))))))))
URL TO SHORTEN:
==========================================
 
could not understand how to do what to shorten the url !
 
could not understand how to do what to shorten the url !
 
Response too late
 
Response too late
 
Response too late
 
 
This account has been suspended !
 
8.    www.tinylink.in
(not but tinylink.com)
The Result:       http://tinylink.com/?k0X9byK8dZ
 
 
Response too late.
 
 
as above.
 
 
Response too late.
 
 
Response irrelevant.
 
 
13.    http://bit.ly/
The Result:   http://bit.ly/3Y8E1p
 
 
 
14.    http://hex.io/
 
*****************************************************************************
Embedding code for it available:
<form action='http://hex.io/' method='GPOST'>
        <input type='hidden' name='save' value='y'>
        <table style='font-family: Verdana; font-weight: bold; background-color: #FF6600; text-align: left;' border='1' cellpadding='2' cellspacing='2'>
          <tbody>
            <tr>
              <td align='undefined' 'valign='undefined'>Enter the URL to crush:<br>
            <input type='text' name='url' size='80' value=''> <input type='submit' name='tighturlaction' value='CRUSH URL'>
              </td>
            </tr>
          </tbody>
        </table>
      </form>
</form>
11111111111111111111111111111111111111111
Done below,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 The Result ::    http://hex.io/1jlo       ((((((( OH! Great ))))))))
*******************************************
  
15.    http://zi.ma/
Not listed on google search results and neither on the internet explorer does it give out any result.
 
 
16.    http://is.gd/
The Result:     http://is.gd/4qKLp 
 
 
17.    http://ow.ly/
The Result::        http://ow.ly/vbhR 
 
 
18.    http://is.gd/
as above
 
 
As above
 
 
The Result::   http://alturl.com/44np
 
 
Also:: shmyl.com/
The Result::
Seems to slwo to perform.
 
As above
 
 
No search engine results.
 
 
The Result::        http://littlelink.org//n 
Teh best so far%%%%%%%%%%%$$^^&&&&&&&************
 
 
No reslts
 
 
Result::            http://urlcut.com/1tlkp
Also give choice of copying to clipboard.
Also gies the shortened percentage.
 
 
no results
 
 
awkward results
 
 
29.    http://beam.to/
will have to study abit more.
 
 
 
( it did not give result in search but raterh got another very interesting one )
url.co.uk
good one seems: to be:
The Result:    http://url.co.uk/caxpt  
 
 
not the expected resource.
 
 
32.   http://su.pr/
The Result::   http://su.pr/2SKPAc 
 
 
45.    http://reque.st/
48.    http://a2n.eu/
49.    http://azqq.com/
51.    http://b65.us/
54.    http://curio.us/
58.    http://dn.vc/
61. http://www.get-url.com/
62. http://www.hotredirect.com/
63. http://hurl.it/
LIVE CRICKET MATCH
http://www.livetvsonline.com/live-cricket-soccer-channel-2/
64. http://iscool.net/
65. http://lnk.in/php/index.php
66. http://memurl.com/
67. http://metamark.net/
68. http://ks37024.kimsufi.com/%7Eminilien/introsecours.htm
69. http://moourl.com/
70. http://myurl.in/
71. http://nanoref.com/
72. http://netshortcut.com/
73. http://ne1.net/
74. http://notlong.com/
75. http://nutshellurl.com/
75. http://oboeyasui.com/
76. http://paulding.net/bin/url.cgi
77. http://www.facebook.com/apps/application.php?api_key=9599006556f109e837cc4cb9383517d7
78. http://www.quickurl.co.uk/
79. http://redirx.com/
80. http://rubyurl.com/home
81. http://www.shim.net/index.phtml
82. http://shorl.com/
83. http://www.shortenurl.com/
84. http://shorterlink.com/
85. http://www.shortio.com/
86. http://shortlinks.co.uk/
87. http://www.shorturl.com/
88. http://url.lotpatrol.com/
89. http://get-shorty.com/
90. http://shoturl.us/
91. http://shrinkr.com/
92. http://shrinkurl.us/
93. http://shurl.net/
94. http://simurl.com/
95. http://www.sitelutions.com/info/slredirection
96. http://www.starturl.com/index.php
97. http://tighturl.com/
98. http://tiniuri.com/
99. http://www.digipills.com/tinylink/introsafe.htm
100. http://tinyurl.com/
101. http://traceurl.com/index.html?locale=en#t0
102. http://truncurl.com/
103. http://tubeurl.com/
104. http://turo.us/
105. http://tweetl.com/
106. http://twittu.ms/
107. http://www.ulimit.com/en/
108. http://urlao.com/
109. http://urlbee.com/
110. http://url.co.uk/
111. http://urlcutter.com/
112. http://urlcut.com/
113. http://urlhawk.com/
114. http://url.ie/
115. http://urltea.com/
116. http://u76.org/
117. http://www.vdirect.com/
118. http://wapurl.co.uk/
119. http://www.webalias.com/
120. http://xil.in/
121. http://yatuc.com/
122. http://yep.it/
123. http://zootit.com/
124. http://6url.com/
125. http://301url.com/
 
((((((((((((((((((((((( CODE ))))))))))))))))))))))[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]=======>
((((((((((((((((((((((((((((( From :  http://briancray.com/2009/08/26/free-php-url-shortener-script/ )))))))))))))
<!DOCTYPE html>
<html>
<title>URL shortener</title>
<meta name="robots" content="noindex, nofollow">
</html>
<body>
<form method="post" action="shorten.php" id="shortener">
<label for="longurl">URL to shorten</label> <input type="text" name="longurl" id="longurl"> <input type="submit" value="Shorten">
</form>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
 $('#shortener').submit(function () {
  $.ajax({data: {longurl: $('#longurl').val()}, url: 'shorten.php', complete: function (XMLHttpRequest, textStatus) {
   $('#longurl').val(XMLHttpRequest.responseText);
  }});
  return false;
 });
});
</script>
</body>
</html>
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Another
$shortenedurl = file_get_contents
('http://yourdomain.com/shorten.php?longurl=' . 
urlencode('http://' . $_SERVER['HTTP_HOST']  
. '/' . $_SERVER['REQUEST_URI']));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^(((((((( 0000000 )))))))))))))
Shorten.php
<?php
/*
* First authored by Brian Cray
* License: http://creativecommons.org/licenses/by/3.0/
* Contact the author at http://briancray.com/
*/
  $url_to_shorten = get_magic_quotes_gpc() ? stripslashes(trim($_REQUEST['longurl'])) : trim($_REQUEST['longurl']);   if(!empty($url_to_shorten) && preg_match('|^https?://|', $url_to_shorten)) { require('config.php');   // check if the client IP is allowed to shorten if($_SERVER['REMOTE_ADDR'] != LIMIT_TO_IP) { die('You are not allowed to shorten URLs with this service.'); }   // check if the URL is valid if(CHECK_URL) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url_to_shorten); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $response = curl_exec($ch); curl_close($handle); if(curl_getinfo($ch, CURLINFO_HTTP_CODE) == '404') { die('Not a valid URL'); } }   // check if the URL has already been shortened $already_shortened = mysql_result(mysql_query('SELECT id FROM ' . DB_TABLE. ' WHERE long_url="' . mysql_real_escape_string($url_to_shorten) . '"'), 0, 0); if(!empty($already_shortened)) { // URL has already been shortened $shortened_url = getShortenedURLFromID($already_shortened); } else { // URL not in database, insert mysql_query('LOCK TABLES ' . DB_TABLE . ' WRITE;'); mysql_query('INSERT INTO ' . DB_TABLE . ' (long_url, created, creator) VALUES ("' . mysql_real_escape_string($url_to_shorten) . '", "' . time() . '", "' . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . '")'); $shortened_url = getShortenedURLFromID(mysql_insert_id()); mysql_query('UNLOCK TABLES'); } echo BASE_HREF . $shortened_url; }   function getShortenedURLFromID ($integer, $base = ALLOWED_CHARS) { $length = strlen($base); while($integer > $length - 1) { $out = $base[fmod($integer, $length)] . $out; $integer = floor( $integer / $length ); } return $base[$integer] . $out; }
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Redirect.php
<?php
/*
* First authored by Brian Cray
* License: http://creativecommons.org/licenses/by/3.0/
* Contact the author at http://briancray.com/
*/
  if(!preg_match('|^[0-9a-zA-Z]{1,6}$|', $_GET['url'])) { die('That is not a valid short url'); }   require('config.php');   $shortened_id = getIDFromShortenedURL($_GET['url']);   if(CACHE) { $long_url = file_get_contents(CACHE_DIR . $shortened_id); if(empty($long_url) || !preg_match('|^https?://|', $long_url)) { $long_url = mysql_result(mysql_query('SELECT long_url FROM ' . DB_TABLE . ' WHERE id="' . mysql_real_escape_string($shortened_id) . '"'), 0, 0); @mkdir(CACHE_DIR, 0777); $handle = fopen(CACHE_DIR . $shortened_id, 'w+'); fwrite($handle, $long_url); fclose($handle); } } else { $long_url = mysql_result(mysql_query('SELECT long_url FROM ' . DB_TABLE . ' WHERE id="' . mysql_real_escape_string($shortened_id) . '"'), 0, 0); }   if(TRACK) { mysql_query('UPDATE ' . DB_TABLE . ' SET referrals=referrals+1 WHERE id="' . mysql_real_escape_string($shortened_id) . '"'); }   header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $long_url); exit;   function getIDFromShortenedURL ($string, $base = ALLOWED_CHARS) { $length = strlen($base); $size = strlen($string) - 1; $string = str_split($string); $out = strpos($base, array_pop($string)); foreach($string as $i => $char) { $out += strpos($base, $char) * pow($length, $size - $i); } return $out; }
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
config.php
<?php
/*
* First authored by Brian Cray
* License: http://creativecommons.org/licenses/by/3.0/
* Contact the author at http://briancray.com/
*/
  // db options define('DB_NAME', 'briancray_wp'); define('DB_USER', 'briancray_wp'); define('DB_PASSWORD', 'A_=44ton2**'); define('DB_HOST', 'localhost'); define('DB_TABLE', 'shortenedurls');   // connect to database mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME);   // base location of script (include trailing slash) define('BASE_HREF', 'http://' . $_SERVER['HTTP_HOST'] . '/');   // change to limit short url creation to a single IP define('LIMIT_TO_IP', $_SERVER['REMOTE_ADDR']);   // change to TRUE to start tracking referrals define('TRACK', FALSE);   // check if URL exists first define('CHECK_URL', FALSE);   // change the shortened URL allowed characters define('ALLOWED_CHARS', '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');   // do you want to cache? define('CACHE', TRUE);   // if so, where will the cache files be stored? (include trailing slash) define('CACHE_DIR', dirname(__FILE__) . '/cache/');

.htaccess

DirectoryIndex index.php
 
php_flag register_globals off
php_flag magic_quotes_gpc off
php_value display_errors 0
 
FileETag none
ServerSignature Off
 
Options All -Indexes
 
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^shorten/(.*)$ shorten.php?longurl=$1 [L] RewriteRule ^([0-9a-zA-Z]{1,6})$ redirect.php?url=$1 [L] </IfModule>
&&&&
aaaaaaaaaa
 
** Another:code:

Htaccess redirect

.htaccess files can be used to make redirects. Below are some common examples.

Redirect from old domain to new domain

You can use the code below if you have changed domain and want users on your old domain to be redirected to your new domain.

RewriteEngine on
RewriteRule ^(.*)$ http://www.your-new-domain.com/$1 [R=301,L]

If a user visits http://www.olddomain.com/articles.php he will be redirected to the same page on your-new-domain.com. The R=301 part make it a permanent redirect by sending a “301 Moved Permanently” status code to the user’s browser. If the user happens to visits the same page on your old domain, the browser will automatically redirect to the new domain.

Redirect to www

So you only want users to visit www.mydomain.com and not domain.com? Htaccess redirects can solve this too. Copy the code below into a .htaccess for redirecting all visits to your www domain.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
..................
 
Subpages (1): Loooong Shrtnd2
Comments