public
Description: a small url shortener service
Homepage:
Clone URL: git://github.com/winks/shortcore.git
winks (author)
Fri Jul 03 01:24:22 -0700 2009
commit  53de3c5377a3c36df38fa1d3512fcffd246db34e
tree    a327ad499775221a3099ca96b9c9bb6fb248c563
parent  918cbe47ad225d72c979ddcd7a51c652b20177f9
shortcore / README
100644 44 lines (31 sloc) 1.134 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
  Shortcore, a small url shortener service
    (c) 2009 Florian Anderiasch, <fa at art dash core dot org>
    BSD-licenced
 
 
Requirements
~~~~~~~~~~~~
* a reasonably recent installation of PHP5, probably 5.2.0+
* PDO with sqlite enabled
 
 
Installation
~~~~~~~~~~~~
* git checkout
* put into its own VirtualHost
* edit .htaccess (or rewrite for lighty)
* edit shortcore.config.php with sensible values
* use the shortcore.db or create your own:
 
CREATE TABLE shortcore (id TEXT, url TEXT, title TEXT, counter INT, created INT, PRIMARY KEY(id));
INSERT INTO shortcore VALUES ("self", "http://example.org", "My example", 0, 1246465921);
 
* possibly put shortcore.db out of docroot
* make absolutely sure your webserver user has write access to the *directory* with shortcore.db in it.
 
Usage
~~~~~
* browse to cfg['home'] /shortcore.php?help and check the bookmarklet
* find an interesting site
* click the bookmarklet
 a) insert an id
 b) don't insert an id
* hit enter or press ok
* it's getting saved and you're redirected
 
the urls are of the form:
 
http://example.org/_<id>
 
if you want to preview, use:
 
http://example.org/_<id>_