I'm trying to make an if statement to serve different scripts based on the current URL
that the user is on.
this is what I came up with so far, but it seems to not work, thanks
// url to show script A
$url_1 = 'https://www.example.com' ;
// url to serve script
$url_2 = 'htpps://www.example.com/page-to-run-script/';
$request_uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$is_page = strpos($request_uri, '/page-to-run-script/');
if ($is_page == true) {
// run script A...
} else {
// run script B...
}