Forum Moderators: coopster
domain.com/whatever/page.php
Can someone help me with the syntax on how to do that?
Thanks in advance.
$path_array = explode("/", $_SERVER['REQUEST_URI']);
Debug your result like this:
echo "<pre>"; var_dump($path_array); echo "</pre>";
Depending on your server configuration $path_array[1] should return "whatever".