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 1074 posted 14 years ago by jackoder
PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs. Tested with Javascript and PHP.
1 1609 posted 14 years ago by nkm
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 688 posted 14 years ago by donkeykong
0 717 posted 14 years ago by electblake
0 942 posted 14 years ago by frankyfish
checks who tagged a given url on delicious
0 653 posted 14 years ago by magicrebirth
You have to add this code in your Bootstrap
1 696 posted 14 years ago by asterfr
Creates a tiny url for posting on twitter etc.
1 1479 posted 14 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 1584 posted 14 years ago by drwitt
1 1366 posted 14 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 1046 posted 14 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 893 posted 14 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 3233 posted 14 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 1629 posted 14 years ago by ginoplusio
This script will return the URL for the current page you're on, including category and tag pages.
3 1373 posted 14 years ago by jonhenshaw
1 693 posted 14 years ago by arpit
1 2862 posted 14 years ago by ozke
I added this code in the ModuleNews.php file on line 310 - 314.
0 714 posted 15 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 807 posted 15 years ago by loucypher
0 796 posted 15 years ago by ajbatac