Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged url



« Prev 1 2 3 4
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 1516 posted 11 years ago by 108Bits
This snippet shows you how to get previous and next post in category URL.
0 2442 posted 11 years ago by fedek6
[ Yii Framework ] Use this to redirect to previous page or last request URL
0 2362 posted 11 years ago by tucq88
Simple PHP functions to validate url, email address and ip, functions will return TRUE for valid data and FALSE for invalid data.
0 2817 posted 11 years ago by codingforever99
Open your function.php of your active Theme. Copy your code insert and call the new Site URL. After delete the code snippet.
0 2422 posted 12 years ago by WMSchneider
append this to switch to different Stores in Magento
0 2175 posted 12 years ago by tomle123
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 3828 posted 12 years ago by fackz
If you work with Twitter, you probably use a url shortener such as tinyurl.com or bit.ly to share/post your favorite blog posts or important messages with links on the network. This snippet take your url as a parameter and returns a short url.
0 2467 posted 12 years ago by apphp-snippets
**Example of use:** <a href="http://www.php.net/manual/en/index.php"><img src="<?php echo get_favicon('http://www.php.net/manual/en/index.php') ?>" alt="Favicon" title="See PHP documentation" width="16" height="16" /></a>
0 3150 posted 12 years ago by phpdev
Return URL Title. Return URL if any problem.
0 2411 posted 12 years ago by goo
Get current url. Include domiain. For example :http:// localhost/root_folder.
0 2742 posted 13 years ago by tucq88
This function allow you ti have multiple parameters in your query string. Ex : id=12&name=Doe&id=42&nickname=Monster
0 2265 posted 13 years ago by MonsterDev
need to get the url from a youtube/vimeo embedded code without the querystring's
0 2547 posted 13 years ago by fetz
Check if URL is HTTPS
2 3943 posted 13 years ago by the_construct
This will get the 11-character YouTube video ID from any valid YouTube URL. Based on http://snipplr.com/view/57065/get-youtube-video-id/ but made more robust to handle additional URL inputs
0 3009 posted 13 years ago by jmiller
0 1748 posted 14 years ago by rwunsch
0 1321 posted 14 years ago by focal55
Rescatamos los datos que pasamos por apprequest .
0 2481 posted 14 years ago by serialk89
Rescato variables desde un iframe con $signed_request
0 2417 posted 14 years ago by serialk89
Convert a string to friendly string.
0 1156 posted 14 years ago by alyssonweb
0 1093 posted 14 years ago by prianto
0 1117 posted 14 years ago by dubogii
1 1031 posted 14 years ago by psteinweber
Parses a url correctly even with a url as query parameter, also retuns dirname, basename and extension besides the other parse_url bits. See comments for more info.
0 1454 posted 14 years ago by tasmanweb
If you've ever tried to subscribe to a podcast outside of iTunes but only have an iTunes URL, you know how frustrating it is. Turns out that you just need to spoof yourself as an iTunes client to see the direct feed URL. This script helps with exactl...
1 2254 posted 14 years ago by lasavior
I needed a simple function to shorten a link with goo.gl and wrote this, thought it may help someone. Note: you still need an API key from goo.gl
1 2201 posted 14 years ago by lasavior
Returns the video id for any type of youtube url that holds one.
2 2081 posted 14 years ago by KabuqueJoe
I pinched the get_avatar() function from the wp/wp-includes/pluggable.php file and commented out the setting of the avatar as an <img> tag and returned the actual image url instead.
0 1153 posted 14 years ago by camdagr8
« Prev 1 2 3 4