Hi I've got a problem with a piece of code and I have been told that I need to "Remove all the query parameters in the string" but not how to do it. This is the code I need to remove the query parameters from: $card_string = fetch_file_via_socket($fetch_url . "?bot=Live_" . $gxblprod['version'] . "&ref=" . $vbulletin->options['bburl'] . "/live.php"); PHP: Any ideas on what I have to remove? I don't understand PHP, so I don't know how to do it. Thanks in advance, F1F
Same code, with parameters removed: $card_string = fetch_file_via_socket($fetch_url . '/live.php'); PHP:
this should be either $card_string = fetch_file_via_socket($fetch_url . "/live.php" . "?bot=Live_" . $gxblprod['version'] . "&ref=" . $vbulletin->options['bburl']); PHP: or $card_string = fetch_file_via_socket($fetch_url . "/live.php"); PHP: or $card_string = fetch_file_via_socket($fetch_url); PHP: meaning those parameters should be at the end of url or not at all
Thanks for the replies Tested all 3 options and non seemed to work Now been told that apart from just removing the query parameter, I need to All this seems to be a foriegn language to me
Oh no thanks for your help. What's happened is that the gxboxlive mod for vBulletin has been blocked from updating via the Xbox API, as some people were abusing it and getting their leaderboards to update every minute (rather than once a day). 1 guy's found the way around it (Post 1: http://www.vbulletin.org/forum/showpost.php?p=2072650&postcount=1140 and Post 2: http://www.vbulletin.org/forum/showthread.php?p=2073439#post2073439) but it's revealing the code to fix it, just how to.