Created
July 14, 2021 05:53
-
-
Save Rameshwar-ghodke/26cc298f88387945d4ea78ed6de33573 to your computer and use it in GitHub Desktop.
Fetch url with server request and divide it into sepearte function or component wise in php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$directoryURI = $_SERVER['REQUEST_URI']; | |
$path = parse_url($directoryURI, PHP_URL_PATH); | |
$components = explode('/', $path); | |
$Module = $components[2]; | |
$function = $components[3]; | |
// die(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment