Welcome To Snipplr


Everyone's Recent Snippets Tagged url



Dear php coders, Here's a code block that you can use in your projects to get shorter long urls. Also recommend these articles about [ozon tedavisi](http://www.denizliozon.com) here. Have a nice coding.
0 2283 posted 16 years ago by jackoder
0 1730 posted 16 years ago by adampatterson
I couldn't easily find an example of how to verify if someone added my link to their site while they added their link to a directory of mine. After some research, I found out how to search for a string remotely. I have simplified the steps so that yo...
0 1624 posted 16 years ago by donkeykong
0 1808 posted 16 years ago by electblake
0 2259 posted 16 years ago by frankyfish
checks who tagged a given url on delicious
0 1505 posted 16 years ago by magicrebirth
You have to add this code in your Bootstrap
1 1678 posted 16 years ago by asterfr
Creates a tiny url for posting on twitter etc.
1 2610 posted 16 years ago by vagrantradio
Many scripts rely on `$_SERVER[SCRIPT_URL]` which is sometimes missing. This function detects it from other server variables and fixes the missing field.
1 2964 posted 16 years ago by drwitt
1 3826 posted 16 years ago by ajit555
If the official codex approach (http://codex.wordpress.org/Changing_The_Site_URL) is causing you problems, give this a try. Be sure to change the constant declarations and modify table names as necessary for your instance. Confirmed working with WP v...
1 2449 posted 16 years ago by johnandrewsroot
This is how to use the $sf_request in a view to build the current base url, including the application file used to build the script.
0 1928 posted 16 years ago by cburyta
This is an improvement on http://snipplr.com/view/11583/retrieve-url-params-with-jquery/ I found IE wasn't liking the results[1] when no param was set. This fixes that issue.
6 5594 posted 16 years ago by geekyjohn
The first function make short urls. The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location"...
1 3528 posted 16 years ago by ginoplusio
This script will return the URL for the current page you're on, including category and tag pages.
3 3063 posted 16 years ago by jonhenshaw
1 1690 posted 16 years ago by arpit
1 4262 posted 16 years ago by ozke
I added this code in the ModuleNews.php file on line 310 - 314.
0 1766 posted 16 years ago by kahlil
A short photo id is a base58 conversion of the photo id. Base58 is like base62 [0-9a-zA-Z] with some characters removed to make it less confusing when printed. (namely 0, O, I, and l). So that leaves an alphabet of: 123456789abcdefghijkmnopqrstuvw...
0 2140 posted 16 years ago by loucypher
0 1799 posted 16 years ago by ajbatac
Matches are as follows: 0 = protocol 1 = fqdn 2 = subdomain 3 = top level subdomain 4 = domain (blah.com) 5 = port 6 = path 7 = query string 8 = hash
1 1953 posted 16 years ago by remotezygote