Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry How to insert domain name into URL as GET parameters

    Dear bro,

    Please help me understand why my PHP file can not recognize to GET "launch" parameter in URL:

    http://bloggeritems.com/tools/smart-...0&launch=true#

    When I removed "domain" parameter from URL, it's worked fine.

    If the reason is from "domain" parameter, please help explain why and how can I insert a domain into URL as GET parameter for the PHP file can get as a right way.

    Thank you so much,
    Tien

  • #2
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    333
    Thanks
    2
    Thanked 47 Times in 46 Posts
    Looks good to me...or whats the problem?

  • #3
    Regular Coder
    Join Date
    Sep 2011
    Posts
    428
    Thanks
    18
    Thanked 26 Times in 26 Posts
    It looks like your either missing part of the url or the syntax of it is incorrect, but I'm assuming you cut part of it out. If you would like assistance, it's better to include the entire url for better understanding. If there are parts that you do not want people to see (ex. filenames) then just rename them (ex. test.php, example.php, securefile.php).

  • #4
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    721
    Thanks
    20
    Thanked 84 Times in 84 Posts
    HE DIDNT THE FORUM DID
    Code:
    http://bloggeritems.com/tools/smart-responsive-tester-for-web-designers?domain=http%3A%2F%2Fyeah-vn.blogspot.com&mode=0&launch=true#
    There are 10 types of people on CodingForums,
    Those who understand Binary and those who dont.
    Get Cloud Hosting now from only£59 / month

  • #5
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    721
    Thanks
    20
    Thanked 84 Times in 84 Posts
    p.s. you could try removing http:// :

    Code:
    http://bloggeritems.com/tools/smart-responsive-tester-for-web-designers?domain=yeah-vn.blogspot.com&mode=0&launch=true
    There are 10 types of people on CodingForums,
    Those who understand Binary and those who dont.
    Get Cloud Hosting now from only£59 / month

  • #6
    Regular Coder
    Join Date
    Sep 2011
    Posts
    428
    Thanks
    18
    Thanked 26 Times in 26 Posts
    If all else fails, you could convert the string to base64 and have the page decode the string again to get the real url. I used that method on a test proxy page I made and it worked fine for me.

    If you want to check the validity of the function, here's a simple function you could use that I use:
    PHP Code:
    function is_base64($base64String)
    {
        return (
    base64_encode(base64_decode($base64String)) == $base64String);



  •  

    Posting Permissions

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