Was just wondering if someone could help me with this regex. Or in fact, there may be another thing i can use that i'm not aware of that's simpler than that - i dunno!
anyway, using multiple pages on my website with the same code used for alternating NEXT and PREV between pages etc. I'm looking to use $_GET to scan the url to find out which specific .php page is currently displaying, in order to copy it into the link file.
so i need it to detect "smiles.php" or just "smiles" in order for me to have code for next page as:
echo '<a href="/'.$page_name.'.php?page=2">Next</a>
The only reason i ask is that I want to essentially not have to alter the code for every single different type of page that this PREV/NEXT type of code will be used for on my website. If it can just call the name of the php file, define it as a variable like $page_name, would make life so easy.