PHP Classes

Get Domain name: Extract the base domain from an URL

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 26%Total: 675 This week: 1All time: 4,792 This week: 560Up
Version License PHP version Categories
getdomain 1.0Free for non-comm...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: 2881179 in India India
Week rank: 411 Up26 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:675
This week:1
All time:4,792
This week:560Up
User Ratings User Comments (2)
 All time
Utility:31%StarStar
Consistency:43%StarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:26%StarStar
Rank:4341
 
PHP has already this function: parse_url (f.
14 years ago (Ralf Mike Pretzlaw)
12%Star
Please don't waste time , ours and yours with bload code.
14 years ago (matteo cisilino)
5%Star