![]() |
架設Short URL Service軟體
Phurl - PHP URL Shortening Script
Requirements PHP 4 or above PHP image/gd module (optional for CAPTCHA support) MySQL 4 or above Apache web server mod_rewrite (optional) License Phurl is GPL licensed free software. Demo︰ http://www.hido.net/projects/phurl/demo/index.php 聯絡作者︰ http://www.hido.net/sendmail.php 前幾天寫信去問作者︰ Whether can join the url preview and redirection password? 他的回答是︰ You need to hack phurl yourself to add your needs. I don't have a custom programming service. Thanks. |
正好要用到,感谢分享
|
架起來很快,感覺很好用,可以用在商業行為上面嗎?
|
引用:
http://www.hido.net/projects/phurl/LICENSE.txt 可惜沒有網址預覽和轉址密碼保護, 作者以為我寫信去要求加入這些功能是為了做類似tinyurl或0rz網站服務。 如果有能力者可自行hack, 沒有的話可再寫信去是否可在下版加入這些功能, 如果他有打算繼續改版的話。 其他短網址程式大多要收費,要不然就是不夠完善。 |
下面這個就是利用上面的程式架的喔
http://nike.tw/surl/ 至於它的 admin 裡面的功能只有砍掉既有的短網址, 功能不是挺大的 ps. 例如這邊的網址 http://domainclub.org/showthread.php?t=20422 改為 http://nike.tw/surl/21de30 |
不知道是否有更好的類似Short URL Service軟體,像這樣的網址http://nike.tw/surl/21de30,好像不太好記,想請教各位大大像這樣的服務都如何使用呢?
|
引用:
EX. http://nike.tw/21de30 |
因為後面是 21de30 ....會產生亂數來取代 所以都不好記吧
除非你的短網址程式有自己命名的部分 |
引用:
這網站是哈大的吧,不知這程式是要付費的嗎? http://www.meaningfulurl.com/ 他可以自己命名自己要的網址: http://invite.to/me |
架設Short URL Service軟體
平時收集的幾個短網址的程序
大家研究吧! 不知道怎麼上傳附件 我放在網絡硬盤裡面,大家下載吧 kissa_be.os.v3 http://www.box.net/shared/4t9h4t8mc0 urlshort-2.0.0 http://www.box.net/shared/lqi53yfdqu shorty_beta http://www.box.net/shared/qnr9evdy63 CekTKP-0.1 http://www.box.net/shared/560e23f58a urlshort-2.0.0(推介) http://www.box.net/shared/qams61a2jg |
我有 wit.im 和 bay.im 还有 114.im 都比较适合做短网址服务。
但谁知道这个服务怎么赚钱?tr.im可是入不敷出倒掉了的。 |
引用:
Most of our services are free, however, we do have some premium URLs that will charge you a small fee for a limited time. The fee is supporting our most free services and prevent people who might abuse or spam on our services. 原文網址: http://www.meaningfulurl.com/faq.php |
引用:
示範網站如下,但程式可能隨時會再修改,資料庫也隨時都會更新,所以試用的轉址隨時會取消; http://to.waterworld.tw 以下為修改的地方供大家參考; 1. 下載安裝程式,請至下面網址下載: http://blog.zakka.tw/read.php?227 2. 依照指示安裝 3. 在index.php檔案中,找到<strong>Enter a long URL to make it shorter:</strong><br /><input type="text" name="url" size="40" /><br />在下面一行加上<br />please input a name for your short url:<input type="text" name="url2" size="40" /><br /> 4. 在create.php檔案中進行跟步驟三同樣的修改 5. 在global.php檔案中,將function generate_url() { $keys = "23456789abcdefghkmnpqrstvwxyz"; $i = 0; $url = ""; while ($i < 6) { $random = mt_rand(0, strlen($keys) - 1); $url .= $keys{$random}; $i++; } return $url; 以 function generate_url() { $url = $_POST['url2']; return $url;}取代 6. 在forwward.php檔案中將if (preg_match("/^[0-9a-z]{6}$/", $i)) { db_connect(); $suffix = $i{0}; $result = mysql_query("SELECT url FROM url_{$suffix} WHERE short_url = '$i'") or die(mysql_error()); if (mysql_num_rows($result) > 0) { $row = mysql_fetch_row($result); header("Location: ".stripslashes(str_replace(",", "%2C", $row[0]))); exit; } } 以 db_connect(); $suffix = $i{0}; $result = mysql_query("SELECT url FROM url_{$suffix} WHERE short_url = '$i'") or die(mysql_error()); if (mysql_num_rows($result) > 0) { $row = mysql_fetch_row($result); header("Location: ".stripslashes(str_replace(",", "%2C", $row[0]))); exit; } 取代 7. 最後,將網站目錄中的.htaccess中的RewriteCond %{REQUEST_URI} \/([0-9a-z]{6})$ [NC] 改成 RewriteCond %{REQUEST_URI} \/([0-9a-z]+)$ [NC] 8. 大功告成~cici 將原本亂數產生的短網址改為可以自訂後,發現若是有人使用同一名稱,網站就會一直呈現連線中無法運作,這是要再改進的地方。 |
所有時間均為 +8。現在的時間是 12:37 AM。 |
Powered by vBulletin® 版本 3.8.4
版權所有 ©2000 - 2025,Jelsoft Enterprises Ltd.