Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-11-2013, 10:39 AM   PM User | #1
tiennguyen
New to the CF scene

 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
tiennguyen is an unknown quantity at this point
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
tiennguyen is offline   Reply With Quote
Old 01-11-2013, 07:25 PM   PM User | #2
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
Looks good to me...or whats the problem?
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Old 01-12-2013, 12:59 AM   PM User | #3
Dubz
Regular Coder

 
Join Date: Sep 2011
Posts: 206
Thanks: 15
Thanked 5 Times in 5 Posts
Dubz has a little shameless behaviour in the past
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).
Dubz is offline   Reply With Quote
Old 01-12-2013, 11:09 AM   PM User | #4
Arcticwarrio
Regular Coder

 
Arcticwarrio's Avatar
 
Join Date: May 2012
Location: UK
Posts: 597
Thanks: 15
Thanked 67 Times in 67 Posts
Arcticwarrio is on a distinguished road
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.
Arcticwarrio is offline   Reply With Quote
Old 01-12-2013, 11:11 AM   PM User | #5
Arcticwarrio
Regular Coder

 
Arcticwarrio's Avatar
 
Join Date: May 2012
Location: UK
Posts: 597
Thanks: 15
Thanked 67 Times in 67 Posts
Arcticwarrio is on a distinguished road
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.
Arcticwarrio is offline   Reply With Quote
Old 01-12-2013, 08:16 PM   PM User | #6
Dubz
Regular Coder

 
Join Date: Sep 2011
Posts: 206
Thanks: 15
Thanked 5 Times in 5 Posts
Dubz has a little shameless behaviour in the past
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);

Dubz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:59 AM.


Advertisement
Log in to turn off these ads.