---
title: "Discussion on \"How to get the scheme, host, port, and path from a complete URL using PHP?\" | Hashnode"
description: "Discussion on \"How to get the scheme, host, port, and path from a complete URL using PHP?\". How to get the scheme, host, port, and path from a complete URL using PHP?"
url: "https://hashnode.com/posts/how-to-get-the-scheme-host-port-and-path-from-a-complete-url-using-php/645e223ffd5d11d15e4df23c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to get the scheme, host, port, and path from a complete URL using PHP?](https://msmrobin.hashnode.dev/how-to-get-the-scheme-host-port-and-path-from-a-complete-url-using-php?utm_source=hashnode&utm_medium=feed)

How to get the scheme, host, port, and path from a complete URL using PHP?

May 12, 2023 · 1 min read · msmrobin.hashnode.dev  
Updated May 23, 2023  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#hack](https://hashnode.com/tag/hack)

## Written by

[MD Shahin Mia Robin](https://hashnode.com/@robinNcode)

@robinNcode · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@robinNcode)

Learn how to learn, teach how to teach

Software Engineer@Datasoft Systems Bangladesh Limited BSc. in CSE

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
