Welcome To Snipplr
Everyone's Recent Snippets Tagged url
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Little script which call tinyurl.com via 'curl' for generate a sort url of the url you pass.
0
1343
posted 16 years ago by Juanje
This gets the current page addr. and send it...
Modify form action="" to send values to proper mail function - or - class.
3
985
posted 16 years ago by skywalker
Very minimal. Some homegrown API seeds from a while ago. Just posting for use as some php examples.
0
882
posted 16 years ago by mandric
Worst title ever. Basically, this takes a string like:
"Check this out: http://snipplr.com/view/5759/replace-a-url-its-domain-name-and-create-link/" and replaces it with "Check this out: snipplr.com [with a link to the full URL]"
1
1272
posted 16 years ago by jaytee
This is handy for testing, when you need to simulate an open file or open URI. Why, and the Pickaxe book, have better examples
1
889
posted 17 years ago by cczona
(c) copyright Stephen Chapman, 1st Jan 2005.
Example:
alert('http://'+uri.dom+uri.path+'/folder/file.js');
0
835
posted 17 years ago by oxisound
This makes it easy to retrieve certain value from a url with different values appended to it.
0
1067
posted 17 years ago by iTony
Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias and_so_on.com just has [NC]....
6
1009
posted 17 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force removal of www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
3
1086
posted 17 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force users to use www in urls. Good for letting search engine spiders in the right door...
Insert the code in your .htaccess-file in your website's root folder.
5
1181
posted 17 years ago by torkil