1
2
3
4
	function create_link($string) {

		$input = media_title($string);
...

PHP Prepare links - friendly URLs

by Memf, September 04, 2008 05:57, 2 refactorings, tagged with php, short, friendly, friendly urls, url, URLs, prepare, code, memforis, function, memf, links, create link

Please help shorten the cod...

71367d98df2bf14cbf704e7741eb402d Talk
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

by julien, July 18, 2008 17:16, 3 refactorings, tagged with find, url

Hi!
I've a got a website A...

B30ce50678f0e934eaa6697425c59dd7 Talk
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 ...

132a00e84e74c003f68311b39b28e969 Talk
1
2
3
4
<script type="text/javascript">

window.onload = function() {
...

JavaScript Shorten links

by DeathfireD, November 09, 2007 14:23, 4 refactorings, tagged with short, url, short url

is there a better, shorter,...

421453710d51d7daaea8069af0aa4126 Talk
1
2
3
4
<script type="text/javascript">
var feature_stuff = new Array(
'<li><a href="#">URL 1</a></li>',
...

JavaScript Random URL

by DeathfireD, October 29, 2007 15:21, 7 refactorings, tagged with random, url, math

Outputs one of the 5 urls r...

421453710d51d7daaea8069af0aa4126 Talk