pastorandy
IS-IT--Management
I am doing this on a small intranet
This brings back something like: /dir/page.php
But can also bring back: /dir/order.php?order_id=3456
Which is fine but how can I limit the url string to just the file name without the directory and without any variables passed in the url string?
Code:
$current_page = $_SERVER['REQUEST_URI'];
This brings back something like: /dir/page.php
But can also bring back: /dir/order.php?order_id=3456
Which is fine but how can I limit the url string to just the file name without the directory and without any variables passed in the url string?