subdomains
lima-city → Forum → Die eigene Homepage → Homepage Allgemein
-
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage
-
w?rde sagen:
probiers aus :D
Ich denke schon, da es doch hier auch schon Zahlenuser gab?^^
ja es geht:
1.gfx-web.com
blo? mit der 0 hat er probleme :D
Beitrag ge?ndert am 17.01.2006 16:16 von sneppa -
Geht :
http://_.cycase.de/
http://1.cycase.de/
http://-.cycase.de/
http://?.cycase.de/
Geht nicht :
http://?.cycase.de/
http://".cycase.de/
http://..cycase.de/
Das sollten so die meisten F?lle sein.
Ansonsten einfach mal googlen.
MfG Lucas -
Null geht auch:
http://0.eisfux.de/
http://-_0????.eisfux.de/
Umlaute sind sowieso erlaubt -- nur das Lima-Board kennt sie nicht.
@gero:
Wof?r brauchst du den RegEx?
Ansonsten:function decode_url( $url = EMPTY_STRING ) { if($url == EMPTY_STRING) return(FALSE); $prot = '(([a-z]+):\/\/)?' ; // protocol $host = '([^\/:]+)' ; // server/host $port = '(:(\d{1,5}))?' ; // port $ruri = '(\/[^#]*)?' ; // request uri $ploc = '(#(.*))?' ; // location in web page $rx_matches = array(); if( !preg_match( '/\A'.$prot.$host.$port.$ruri.$ploc.'\Z/', $url, $rx_matches ) ) return(FALSE); // decoded url $du = array( 'prot' => $rx_matches[2], 'host' => $rx_matches[3], 'port' => $rx_matches[5], 'ruri' => $rx_matches[6], 'ploc' => $rx_matches[8], ); return($du); }
Benutzername- und Passwort-Erkennung fehlt noch. Brauch ich aber f?r meine Zwecke im Moment nicht.
Und PHP hat sowas auch selbst:
parse_url()
http://de.php.net/manual/de/function.parse-url.php
Funktionier blo? nicht immer.
Beitrag ge?ndert am 18.01.2006 13:18 von alopex -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage