1 2 3 4
function create_link($string) {
$input = media_title($string);
...
1 2 3 4
# This method searches a source by the http, the www and the trailing / to a url def self.find_by_url(url) Source.find :first, :conditions => [ " url = ? OR url = ? OR url = ? OR url = ? ", url, url.gsub("http://", "http://www"), url + "/", url.gsub("http://", "http://www")+"/"] ...
Ruby Find a URL in a database
Hi!
I've a got a website A...
1 2 3 4
<? php if $userinput = "http://www." { ...
PHP Replace user input with link
by Mlopez,
January 02, 2008 01:39,
8 refactorings, tagged with replace, text, with, url, php, user, help, phrasing, parsing, http
im not quite sure where to ...
1 2 3 4
<script type="text/javascript"> window.onload = function() { ...
JavaScript Shorten links
is there a better, shorter,...
1 2 3 4
<script type="text/javascript"> var feature_stuff = new Array( '<li><a href="#">URL 1</a></li>', ...
JavaScript Random URL
Outputs one of the 5 urls r...
Please help shorten the cod...