Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged link
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In wordpress, if you want to auto convert all URLs in your string into clickable hyperlinks, you can actually do it using the built-in function make_clickable().
If you need to do that outside of wordpress, you can use the same function.
Example...
2
2104
posted 11 years ago by fackz
Here's the basic principal behind spiders. (ex: <a href="http://giochiflash.123homepage.it">Giochi Flash</a> $html = file_get_contents('http://www.example.com');
6
4778
posted 11 years ago by haydin
Link to the current theme / template url for use in wordpress template.
0
824
posted 13 years ago by carouselcreative
use <?php>/images/someimage.gif
Such a path resolves to ..
http://www.yoursite.com/wp-content/themes/YOURTHEME/images/someimage.gif
0
761
posted 13 years ago by disgruntledillon
Returns the video id for any type of youtube url that holds one.
2
1326
posted 13 years ago by KabuqueJoe
Simple, It gets the referer and if there wasn't a referer it displays just the home link, but when there is a referer it dispays both back and home, I personaly use this on my 404 page.
1
929
posted 13 years ago by mentaljason
A simple PHP application for counting how many views a page gets.
0
773
posted 14 years ago by FelixT
Some times you need to accept some url as input but users seldom add http:// to it, this code will add http:// to the URL if it’s not there.
1
935
posted 15 years ago by paulgrenwood
this function formats a web address for use in a link.<br>
echo formatWebAddress("google.com");<br>
http://www.google.com/
1
780
posted 15 years ago by jlvallelonga
YouTube Video Download Link Generator
free for all to use, successfulness can't be guaranteed
5
1894
posted 16 years ago by jacksont123