php获取当前浏览器完整地址

2017-2-23 liyangweb.com 李杨 PHP

 <?php
/**
 * 获取当前页面完整URL地址
 */
function get_url() {
    $sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
    $php_self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
    $path_info = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '';
    $relate_url = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $php_self.(isset($_SERVER['QUERY_STRING']) ? '?'.$_SERVER['QUERY_STRING'] : $path_info);
    return $sys_protocal.(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '').$relate_url;
}
 
echo get_url();
?>

评论:

atppest
2019-01-20 09:58
<a href="http://www.hotelfuat.com/air-jordan-retro-8-dam%C3%A4nner-grau-runninge">air jordan retro 8 dam盲nner grau</a> <a href="http://www.pmisaltriver.com/air-jordan-4-lightning-2018-kicksonfirecom-zapatosu">air jordan 4 lightning 2018 kicksonfirecom</a> <a href="http://www.ductambag.com/nike-air-max-90-ultra-se-nero-bianca-chaussuresa">nike air max 90 ultra se nero bianca</a> <a href="http://www.priverussia.com/greg-jones-jersey-jacksonville-jaguars-33-youth-white-limited-jersey-nike-jersey-nflc">greg jones jersey jacksonville jaguars 33 youth white limited jersey nike jersey</a> <a href="http://www.coatsfrance.com/cheap-nike-roshe-finish-line-runningg">cheap nike roshe finish line</a> <a href="http://www.intoloo.com/zdeno-chara-33-boston-bruins-reebok-premier-alternate-jersey-small-nflv">zdeno chara 33 boston bruins reebok premier alternate jersey small</a>
atppest http://www.atppest.com/
millsbulb
2019-01-16 10:49
<a href="http://www.ictbel.com/dam%C3%A4nner-nike-kobe-9-gelb-grau-scarpeb">dam盲nner nike kobe 9 gelb grau</a> <a href="http://www.ioioland.com/womens-nike-huarache-utility-black-denmark-shoeso">womens nike huarache utility black denmark</a> <a href="http://www.sesliesenyurt.com/nike-flyknit-lunar-1-azul-negro-kurpesb">nike flyknit lunar 1 azul negro</a> <a href="http://www.wethinkjerky.com/new-balance-running-shoes-clearance-sale-zapatost">new balance running shoes clearance sale</a> <a href="http://www.dadees.com/girls-high-converse-shoesz">girls high converse</a> <a href="http://www.pickwickcrc.com/dam%C3%A4nner-nike-shox-turbo-21-orange-lila-schuhec">dam盲nner nike shox turbo 21 orange lila</a>
millsbulb http://www.millsbulb.com/
michaelphenow
2019-01-16 04:02
<a href="http://www.cremontana.com/black-pink-mens-adidas-crazylight-boost-shoes-sneakere">black pink mens adidas crazylight boost shoes</a> <a href="http://www.holeninegolf.com/dam%C3%A4nner-nike-kd-8-rosa-gr%C3%BCn-kurpesa">dam盲nner nike kd 8 rosa gr眉n</a> <a href="http://www.boobseze.com/nike-air-max-r-43-sneakerb">nike air max r 43</a> <a href="http://www.divyangshop.com/green-gold-mens-nike-flex-shoes-shoesg">green gold mens nike flex shoes</a> <a href="http://www.caveduperreux.com/new-york-giants-baby-hat-hats">new york giants baby hat</a> <a href="http://www.fabloomsilk.com/jordan-12-maroon-12-unc-sneakerf">jordan 12 maroon 12 unc</a>
michaelphenow http://www.michaelphenow.com/
nishajagmohan
2019-01-06 12:38
<a href="http://www.seansinjin.com/nike-kobe-10-gr%C3%A5-s%C3%B8lv-hvit-svart-ice-kurpesf">nike kobe 10 gr氓 s酶lv hvit svart ice</a> <a href="http://www.varsitystance.com/vibram-fivefingers-classic-gr%C3%A5-oransje-obuvb">vibram fivefingers classic gr氓 oransje</a> <a href="http://www.azuraonline.com/nike-air-max-95-femmes-jaune-vert-butya">nike air max 95 femmes jaune vert</a> <a href="http://www.brodiebaranow.com/nike-chicago-bears-heart-soul-long-sleeve-nfl-t-shirt-dark-blue-nflu">nike chicago bears heart soul long sleeve nfl t shirt dark blue</a> <a href="http://www.companiens.com/asics-asics-gel-kinsei-2-grigio-argento-kurpesb">asics asics gel kinsei 2 grigio argento</a> <a href="http://www.cuixinyuphoto.com/adidas-stan-smith-sort-bl%C3%A5-schuhec">adidas stan smith sort bl氓</a>
nishajagmohan http://www.nishajagmohan.com/
streakmedia
2019-01-04 05:30
<a href="http://www.bursatiket.net/nike-flyknit-air-max-sensor-for-salg-chaussuresf">nike flyknit air max sensor for salg</a> <a href="http://www.buxpix.net/nike-air-max-zero-marina-militare-bianca-obuvc">nike air max zero marina militare bianca</a> <a href="http://www.buyggauto.net/nike-kd-9-sort-and-hvid-quartz-kurpesb">nike kd 9 sort and hvid quartz</a> <a href="http://www.carlinandcompany.net/nike-lunar-hyperdunk-2013-venta-kurpese">nike lunar hyperdunk 2013 venta</a> <a href="http://www.carrymebike.net/nike-air-force-1-mid-gr%C3%B8nn-gr%C3%A5-kurpesd">nike air force 1 mid gr酶nn gr氓</a> <a href="http://www.casatienda.net/jordan-11-gamma-bleu-keychain-scarped">jordan 11 gamma bleu keychain</a>
streakmedia http://www.streakmedia.net/
nwlcenter
2019-01-03 20:23
<a href="http://www.akncmusic.com/nike-hypershift-hvit-and-svart-kit-schuheb">nike hypershift hvit and svart kit</a> <a href="http://www.dystopianflix.com/k%C3%B8be-nike-lebron-11-fruity-pebbles-butye">k酶be nike lebron 11 fruity pebbles</a> <a href="http://www.getunladylike.com/air-jordan-9-quai-54-for-verkauf-dalleas-butye">air jordan 9 quai 54 for verkauf dalleas</a> <a href="http://www.jesselyon.com/under-armour-curry-2-oransje-svart-obuve">under armour curry 2 oransje svart</a> <a href="http://www.kabukcuoglu.com/nike-free-tr-fit-3-breathe-dark-blau-orange-special-obuvd">nike free tr fit 3 breathe dark blau orange special</a> <a href="http://www.karbasioun.com/nike-free-flyknit-4.0-femminile-argento-viola-kurpesf">nike free flyknit 4.0 femminile argento viola</a>
nwlcenter http://www.nwlcenter.com/
flibroactiv
2019-01-03 07:41
<a href="http://www.kellyalberto.com/nike-kaishi-lightweight-zapatilla-de-deporte-mujeres-boot-scarpeg">nike kaishi lightweight zapatilla de deporte mujeres boot</a> <a href="http://www.kscfoundation.com/adidas-yeezy-boost-350-rosso-viola-kurpesf">adidas yeezy boost 350 rosso viola</a> <a href="http://www.moorefornc.com/air-jordan-4-viola-and-nero-schuheg">air jordan 4 viola and nero</a> <a href="http://www.segalino.com/adidas-forum-mid-blanco-rojo-vertical-schuheb">adidas forum mid blanco rojo vertical</a> <a href="http://www.callalabaynsw.com/nike-stefan-janoski-max-schwarz-mesh-chaussurese">nike stefan janoski max schwarz mesh</a> <a href="http://www.clcohelp.com/herre-nike-free-6.0-lyser%C3%B8d-guld-butyf">herre nike free 6.0 lyser酶d guld</a>
flibroactiv http://www.flibroactiv.com/
albainmaz
2018-12-27 12:29
<a href="http://www.eworklife.com/new-era-cap-back-hats">new era cap back</a> <a href="http://www.fullcountkbo.com/air-jordan-14-varsity-red-zone-sneakere">air jordan 14 varsity red zone</a> <a href="http://www.shackofstones.com/air-jordan-horizon-gr%C3%A5-gull-obuvd">air jordan horizon gr氓 gull</a> <a href="http://www.tamworthbacon.com/youth-nike-dallas-cowboys-88-michael-irvin-limited-white-rush-vapor-untouchable-nfl-jersey-nflw">youth nike dallas cowboys 88 michael irvin limited white rush vapor untouchable nfl jersey</a> <a href="http://www.dvmengineers.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.questoffine.com/jordan-13-shoe-unique-skog">jordan 13 shoe unique</a>
[url=http://www.albainmaz.com/]albainmaz[/url]
pierrekennis
2018-12-27 09:18
<a href="http://www.mcdevittmedia.com/nike-air-force-1-liquid-gull-schuhee">nike air force 1 liquid gull</a> <a href="http://www.thecancerinfo.com/nike-air-max-1-rouge-blanc-and-gris-scarpec">nike air max 1 rouge blanc and gris</a> <a href="http://www.tibetwoodcut.com/mens-nike-atlanta-falcons-21-desmond-trufant-limited-olive-2017-salute-to-service-nfl-jersey-nflx">mens nike atlanta falcons 21 desmond trufant limited olive 2017 salute to service nfl jersey</a> <a href="http://www.viagralaw.com/nfl-mens-nike-san-francisco-49ers-92-jeremiah-attaochu-black-name-number-pullover-hoodie-nflz">nfl mens nike san francisco 49ers 92 jeremiah attaochu black name number pullover hoodie</a> <a href="http://www.agriind.com/adidas-superstar-fl%C3%A5den-hvid-uniform-kurpesa">adidas superstar fl氓den hvid uniform</a> <a href="http://www.cossidae.com/hommes-nike-free-run-4.0-blanc-violet-butyf">hommes nike free run 4.0 blanc violet</a>
pierrekennis http://www.pierrekennis.com/

发表评论:

Powered by emlog 冀ICP备13011830号-1