1 2 3 4
<?php
function isvalid_url($url)
{
...
PHP check for valid url
Hi everyone..is there other...
1 2 3 4
<?php /* E.g: ...
PHP remove http from url string
by armano.myopenid.com,
November 11, 2008 04:09,
13 refactorings, tagged with short url, url, remove http
Ive made a function simply ...
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...
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,
13 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...
So i need to define @purl_b...