1 a:2:{s:7:"current";a:9:{s:4:"date";a:2:{s:7:"created";i:1272584937;s:8:"modified";i:1272585304;}s:7:"creator";s:23:"Kaue Soares da Silveira";s:11:"last_change";a:7:{s:4:"date";i:1272585304;s:2:"ip";s:12:"143.54.12.25";s:4:"type";s:1:"E";s:2:"id";s:3:"php";s:4:"user";s:10:"kssilveira";s:3:"sum";s:0:"";s:5:"extra";s:0:"";}s:11:"contributor";a:1:{s:10:"kssilveira";s:23:"Kaue Soares da Silveira";}s:5:"title";s:3:"PHP";s:11:"description";a:2:{s:15:"tableofcontents";a:2:{i:0;a:4:{s:3:"hid";s:3:"php";s:5:"title";s:3:"PHP";s:4:"type";s:2:"ul";s:5:"level";i:1;}i:1;a:4:{s:3:"hid";s:31:"how_to_get_the_current_page_url";s:5:"title";s:31:"How to get the current page URL";s:4:"type";s:2:"ul";s:5:"level";i:2;}}s:8:"abstract";s:285:"PHP: wp>PHP
3 How to get the current page URL
7 echo $_SERVER["REQUEST_URI"]; /* /~kssilveira/site/doku.php?id=php */
8 echo $_SERVER["SCRIPT_NAME"]; /* /~kssilveira/site/doku.php */
9 echo substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1) /* doku.php */
10 ?>";}s:8:"relation";a:2:{s:10:"references";a:1:{s:15:"tag:programming";b:0;}s:10:"firstimage";s:0:"";}s:7:"subject";a:1:{i:0;s:11:"programming";}s:8:"internal";a:2:{s:5:"cache";b:1;s:3:"toc";b:1;}}s:10:"persistent";a:4:{s:4:"date";a:2:{s:7:"created";i:1272584937;s:8:"modified";i:1272585304;}s:7:"creator";s:23:"Kaue Soares da Silveira";s:11:"last_change";a:7:{s:4:"date";i:1272585304;s:2:"ip";s:12:"143.54.12.25";s:4:"type";s:1:"E";s:2:"id";s:3:"php";s:4:"user";s:10:"kssilveira";s:3:"sum";s:0:"";s:5:"extra";s:0:"";}s:11:"contributor";a:1:{s:10:"kssilveira";s:23:"Kaue Soares da Silveira";}}}