/ Published in: PHP
Ever needed to get the page your user is currently viewing? This can be done quickly in php all thanks to $_server.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
////////////////////////////////////////////// // 1. | Get Page user is currently on ////////////////////////////////////////////// // 1.1 Code ////////////////////////////////////////////// function curPageName() { } ////////////////////////////////////////////// // 1.2 Set Value as varable ////////////////////////////////////////////// $Current_page=curPageName();
URL: http://www.scopesden.co.uk/code_snipit.php?id=