<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_58749"> <div class="blockcode"> <div id="code_A51"><ol> <li><?php<li><li>// 说明:获取完整URL<li><li><li>function curPageURL() <li><li>{<li><li> $pageURL = 'http';<li><li><li> if ($_SERVER["HTTPS"] == "on") <li><li> {<li><li> $pageURL .= "s";<li><li> }<li><li> $pageURL .= "://";<li><li><li> if ($_SERVER["SERVER_PORT"] != "80") <li><li> {<li><li> $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];<li><li> } <li><li> else <li><li> {<li><li> $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];<li><li> }<li><li> return $pageURL;<li><li>}<li><li>?></li> <li> <li> <li> </ol></div> <em onclick="copycode($('code_A51'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> PHP, URL</div> <div id="comment_58749" class="cm"> </div> <div id="post_rate_div_58749"></div> <br><br>