Tag : url
|Curl for PHP||ryantxr||PHP||curl||
minimal curl code for php
append this to switch to different Stores in Magento
|Function to Auto Convert URL into Clickable Hyperlink (Anchor Tag)||fackz||PHP||url||
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: $string = 'I have some texts here and also links such as http://www.youtube.com , www.haha.com and firstname.lastname@example.org. They are ready to be replaced.';
|Adding an active class to nav links based on URL with jQuery Address||vaughanj||jQuery||url||
What this does is it adds the attribute “data-path” to each of the nav links, and gives this attribute a value of whatever comes after the “base” URL. Because we are using jQuery Address, we have the (event.value) variable to play with. This value is automatically set to be whatever is after the “base” value too, which means we can now check to see if these values equal each other. If they do, the active class is added to the link. Remember, this function resides inside the jQuery.address.change function, so it will be run every time a new link is clicked.
validate given URL through C5
|A baby for download movie from http://maktabkhooneh.org||shapour||Bash||curl||
get links from linkList file, that contain links like: http://maktabkhooneh.org/course?course=sharif-riazi2, then get all of course link on that page and save link of related video on that :D
Result is 'list' file that can interpreted with my another script :D
|Get short urls for Twitter with PHP||apphp-snippets||PHP||url||
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.
|Get the Favicon from a website||phpdev||PHP||url||
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>
This snippets show how to extract the video id of a youtube video from its URL
|[PHP] Get URL Title||goo||PHP||url||
Return URL Title. Return URL if any problem.
|Check AmazonEC2 WebSite status and if server is down send notification and restart instance||cduquev||PHP||curl||
Script File launched every 3 minutes to check WebSite status. It uses AWSSDKforPHP library http://docs.amazonwebservices.com/AWSSdkDocsPHP/latest/DeveloperGuide/php-dg-setup.html
|DNN Pop Up Creation URL||box86rowh||C#||url||
This will get you a quick url for a pop up on DNN
|A function to get a files contents with curl.||o0110o||PHP||curlfilesphpfunction||
A handy function to get the contents of a file with curl. Accepts $_path as a parameter.
|A function to get file sizes in multiple formats with curl.||o0110o||PHP||phpcurlfunctionfiles||
A function to get a files size via curl. Accepts $path, $unit, $float, $username & $_password; In the listed order.
|A function to see if a file exists with curl.||o0110o||PHP||curlfilesphpfunction||
This function will use curl to see if a file exists at the location it's provided. It accepts $_path as a parameter.