Having some trouble. Given a URL, how can I use PHP to systematically distinguish between the end portion of a URL being a directory or static file / page, given the following example:
As you can see, there is no period in the end portion of the url, which would signify it being a directory. BUT the page IS a direct page, not a directory. 2522432901 is not a directory. Trying to visit the same URL with a trailing slash at the end succeeds in making a connection, but the page doesn't exist.
So how can I use PHP to verify that 2522432901 was not a directory, and that the current directory is "topic".