PHP Classes

php function

Recommend this page to a friend!

      Only Domain  >  All threads  >  php function  >  (Un) Subscribe thread alerts  
Subject:php function
Summary:there is a function for this 'class'
Messages:1
Author:rudie dirkx
Date:2007-02-02 07:59:47
 

  1. php function   Reply   Report abuse  
Picture of rudie dirkx rudie dirkx - 2007-02-02 07:59:47
parse_url returns an associated array with a key host. This host includes www. if included in the url, but you can easily remove that, ofcourse.

So this probably works:

echo parse_url("http://www.4arab.net/service.html", PHP_URL_HOST);