PHP - Hostname von URL

 

  • echo parse_url("//itlantik.de/dir1/file.ext?param1=val1", PHP_URL_HOST);  # itlantik.de

     
  • echo parse_url("http://itlantik.de/dir1/file.ext?param1=val1", PHP_URL_HOST);  # itlantik.de

     
  • echo parse_url("https://itlantik.de/dir1/file.ext?param1=val1", PHP_URL_HOST);  # itlantik.de

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare