Login   Register  
PHP Classes
elePHPant
Icontem

Only Domain: Extracting 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   Screenshots Screenshots   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-01-26 (7 years ago) RSS 2.0 feedStarStar 36%Total: 644 All time: 4,529 This week: 1,872Up
Version License PHP version Categories  
http_parser 0.1GNU General Public Lice...4Text processing
Description Author  

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

It parses the URL and returns the host domain. If the host starts with www. , that prefix is removed.

Picture of Mohammed Almarwai
Name: Mohammed Almarwai <contact>
Classes: 1 package by
Country: Saudi Arabia Saudi Arabia
Age: 28
All time rank: 26319 in Saudi Arabia Saudi Arabia
Week rank: 1909 Up8 in Saudi Arabia Saudi Arabia Up

Screenshots  
  • demo
  Files folder image Files  
File Role Description
Plain text file http_parser Class Main PHP Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:644All time:4,529
 This week:0This week:1,872Up
User Ratings User Comments (1)  
 All time
Utility:60%StarStarStarStar
Consistency:65%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:36%StarStar
Rank:2265
 
Very simple but very useful.
6 years ago (m203cb)
60%StarStarStarStar