/ Published in: PHP
This will extract page handle between last slash and .html
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$page_len = $dot_pos!==false ? $dot_pos-$slash_pos : 0; if($page_len>0) else echo $cur_page; e.g. http://www.domain.com/somepage.html output: somepage