Skip to main content

Home/ tech-geeks/ Group items tagged php

Rss Feed Group items tagged

Chris Wherley

MakeItLink - Detecting URLs In Text And Making Them Links | Joseph Scott - 0 views

  •  
    class MakeItLink {     protected function _link_www( $matches ) {         $url = $matches[2];         $url = MakeItLink::cleanURL( $url );         if( empty( $url ) ) {             return $matches[0];         }           return "{$matches[1]}{$url}";     }       public function cleanURL( $url ) {         if( $url == '' ) {             return $url;         }           $url = preg_replace( "|[^a-z0-9-~+_.?#=!&;,/:%@$*'()x80-xff]|i", '', $url );         $url = str_replace( array( "%0d", "%0a" ), '', $url );         $url = str_replace( ";//", "://", $url );           /* If the URL doesn't appear to contain a scheme, we          * presume it needs http:// appended (unless a relative          * link starting with / or a php file).          */         if(             strpos( $url, ":" ) === false             && substr( $url, 0, 1 ) != "/"             && !preg_match( "|^[a-z0-9-]+?.php|i", $url )         ) {             $url = "http://{$url}";         }           // Replace ampersans and single quotes         $url = preg_replace( "|&([^#])(?![a-z]{2,8};)|", "&$1", $url );         $url = str_replace( "'", "'", $url );           return $url;     }       public function transform( $text ) {         $text = " {$text}";           $text = preg_replace_callback(             '#(?])(\()?([\w]+?://(?:[\w\\x80-\\xff\#$%&~/\-=?@\[\](+]|[.,;:](?![\s<])|(?(1)\)(?![\s<])|\)))*)#is',             array( 'MakeItLink', '_link_www' ),             $text         );           $text = preg_replace( '#(]+?>|>))]+?>([^>]+?)#i', "$1$3", $text )
Chris Wherley

typo3.org: TYPO3 Content Management System - Developer Resource - 0 views

shared by Chris Wherley on 15 Jul 09 - Cached
  •  
    used for ianetwork.org
Chris Wherley

FPDF - 0 views

Chris Wherley

CSS Stylesheet Switcher using PHP (Javascript free) - 0 views

  •  
    CSS Stylesheet Switcher using PHP (Javascript free) - A simple solution to switch CSS stylesheets on the fly using only PHP. : Bristol based web design and web application development agency specialising in web standards based XHTML, CSS and PHP / MySQ...
Chris Wherley

CSS Colors: Take Control Using PHP - 0 views

  •  
    Use PHP to generate a palette of colors and automatically adjust your foreground colors to make them readable.
Chris Wherley

Regular Expressions PHP Tutorial - 0 views

  •  
    Workarounds for CSS browser issues.
Chris Wherley

Dynamic Drive DHTML Scripts- Translucent scroller - 0 views

  •  
    A pausing scroller that pauses between each message, and applies a translucent effect to each slide each message change.
Chris Wherley

PHP and AJAX Suggest - 0 views

  •  
    Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building.
Chris Wherley

AJAX Form POST/GET - HTML Form Submit with AJAX/Javascript Example/Tutorial - 0 views

  •  
    An interdisciplinary website for science, programming, electronics and more.
Chris Wherley

Create an LDAP Address Book with PHP - 0 views

  •  
    Create an LDAP Address Book with PHP
1 - 20 of 25 Next ›
Showing 20 items per page