Login   Register  
PHP Classes
elePHPant
Icontem

Get Domain name: Extract the base domain from an URL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-06-03 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 650 This week: 1All time: 4,501 This week: 1,364Up
Version License PHP version Categories  
getdomain 1.0Free for non-commercial...3.0Networking, Text processing
Description Author  

This is a very simple class that can be used to extract the base domain from an URL.

It takes an URL string and parses it find the URL domain and return the base domain.

Picture of prathibhap8
Name: prathibhap8 <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 2624169 in India India
Week rank: 1060 Up73 in India India Up

  Files folder image Files  
File Role Description
Plain text file Classdomain.php Class class
Accessible without login Plain text file example.php Example user interface

 Version Control Unique User Downloads Download Rankings  
 0%Total:650All time:4,501
 This week:1This week:1,364Up
 User Comments (2)  
 
PHP has already this function: parse_url (f.
5 years ago (Ralf Mike Pretzlaw)
12%Star
Please don't waste time , ours and yours with bload code.
5 years ago (matteo cisilino)
5%Star