Hi,
I have this string:
<?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];?>
If i print this, i get something like http://xxxxx.dk/foo/foo/43 http://xxxxx.dk/foo/foo/54 etc
Now i only want a specific event to orrur when the last number in the url is a specifc number like 1, 2, 3 or 4). How can this be achieved?
Its important to say that the "foo"'s can be variable. So i one url it could be abc/qqq/123 and another hi/mom/9823 . So there might need somekind of "all" code as a replacement for the foos?
Hello,
I have product page that returns url like this
127.0.0.1/page/pitem_buy.php?id=12559
How can I, using PHP get more data in URL like product name.
I do not need rewrite or SEO friendly URL, just need beside id, product name in any format.
I appreciate any help, thanks
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.