Maybe, because you are under IIS,
$_SERVER['PATH_INFO']
is what you want, based on the URLs you used to explain.
For Apache, you’d use $_SERVER['REQUEST_URI']
.
More Related Contents:
- How to check if mod_rewrite is enabled in php?
- PHP Fatal error: Call to undefined function mssql_connect()
- Can PHP and ASP.Net run together within the same web site in IIS 7.5?
- What causes an HTTP 405 “invalid method (HTTP verb)” error when POSTing a form to PHP on IIS?
- How to read Windows logged in username with PHP/IIS
- Simple comet example using php and jquery
- How do I enable PUT requests in Azure?
- Installing ImageMagick extension with php/windows
- how to write php code for the key press enter button when fill the form?
- Need assistance with regards to htaccess
- If Else Not Work in PHP Script
- PHP multidimensional array search by value
- file_get_contents(): SSL operation failed with code 1, Failed to enable crypto
- Get the Last Inserted Id Using Laravel Eloquent
- PHP Curl And Cookies
- What is ::class in PHP?
- PHP: If internet explorer 6, 7, 8 , or 9
- PHP/Apache/AJAX – POST limit?
- Maximum execution time in phpMyadmin
- how to change php version in htaccess in server
- Unique and temporary file names in PHP?
- how to remember input data in the forms even after refresh page?
- How can I scrape website content in PHP from a website that requires a cookie login?
- get next and previous day with PHP
- How to pass an array via $_GET in php?
- php: setting a timezone by UTC offset
- How to install php-curl in Ubuntu 16.04
- How can I employ “if exists” for creating or dropping an index in MySQL?
- What unit testing in PHP to start [duplicate]
- Save array in mysql database