SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Dec 2005
    Posts
    964
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get fullurl untill "?"

    I'm using modrewrite in my urls but sometimes add additional variables like this:
    mysite.com/ciccms/myname/mypage?test=200

    Now, is it posible to get the full url but only until the "?"...

    I'm getting the full url with this for now:
    PHP Code:
    echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; 
    Any help is apriciated...

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,196
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    This was actually discussed very recently, have a read through the following thread http://www.sitepoint.com/forums/php-...rl-767266.html


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •