permalink page name and using php_self

2 posts by 1 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 6, 2017   (RSS)

By Twocans - June 6, 2017

never mind lol I was so tired I made mistakes 

<?php  echo basename($_SERVER['REQUEST_URI'], '?' . $_SERVER['QUERY_STRING']); ?>

this works

aka, instead of giving me /mydir/mypage.php

it gives me

mypage.php

cheers

k