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 2269 posted 16 years ago by jackoder
0 1718 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 1617 posted 16 years ago by donkeykong
0 1797 posted 16 years ago by electblake
0 2246 posted 16 years ago by frankyfish
checks who tagged a given url on delicious
0 1493 posted 16 years ago by magicrebirth
You have to add this code in your Bootstrap
1 1670 posted 16 years ago by asterfr
Creates a tiny url for posting on twitter etc.
1 2598 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 2954 posted 16 years ago by drwitt
1 3818 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 2435 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 1918 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 5578 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 3502 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 3050 posted 16 years ago by jonhenshaw
1 1679 posted 16 years ago by arpit
1 4251 posted 16 years ago by ozke
I added this code in the ModuleNews.php file on line 310 - 314.
0 1756 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 2129 posted 16 years ago by loucypher
0 1789 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 1943 posted 16 years ago by remotezygote