![]() |
[TBA]: Team info update?
Greetings TBA. I'm with Team 2656, entering our second season of FRC. I was just looking at our page on the TBA website (which is awesome BTW) and a thought occurred to me... We've updated our team name/nick name on TIMS and added URL's there for our website and blog. I'd like to see this information mirrored on TBA, but I wasn't sure how/if I could update that. I assume that you all have something that syncs data with FIRST/TIMS? If so, then I guess we'll be all good after the next update and I won't worry about it any longer. If not, let me know and I'll be happy to submit further information for Team 2656. Thanks. I really like what ya'll and doing at TBA and we've got a link to our page there on the main page of our website. Please, keep up the great work!
|
Re: [TBA]: Team info update?
I just went to run an update of the team data, and it seems that FIRST is doing something to block scripts from downloading team data. I am not sure what is going on, but (https://my.usfirst.org/myarea/index....=FRC&team=1388) gives me different source code depending on if I open it in Chrome or wget it, and I can't open the URL at all from my PHP scripts that worked last spring.
I will investigate this further, but we will do a complete team data update before ship date. Thanks! |
Re: [TBA]: Team info update?
Quote:
|
Re: [TBA]: Team info update?
Sounds like user agent sniffing to me. Could be hacked by setting the user agent (i.e. in PHP as described here) in whatever scripts are used, but it seems to me that a site as prominent in the FIRST community as TBA should be able to work out something a little more "over the table" with FIRST.
--Ryan |
Re: [TBA]: Team info update?
The issue is that they switched TIMS data over to a secure site, and PHP lacked any SSL support until 4.3.0, and ever since it has been rather flaky. As an alternative without fooling with any libraries, you may be able to use fsockopen() to create a SSL or TLS socket. More than likely your host has heavy restrictions on socket-related functions, especially if you are on a shared hosting plan.
When they made the switch last season, I immediately updated my scripts to utilize the cURL library, which works beautifully in this situation. Many hosts now support it and I definitely recommend going this route. Here would be a simple cURL replacement for file_get_contents(): Code:
<?phpand a replacement for file(): Code:
<?phpHope this helps! |
Re: [TBA]: Team info update?
Quote:
|
Re: [TBA]: Team info update?
Quote:
Ultimately, I feel that FIRST underutilizes their website, and could do a lot to promote and help the community. Potential sponsors and people looking for "official" info need a very different experience than students and mentors currently on teams, and I don't think FIRST does a very good job catering to the latter group right now. |
Re: [TBA]: Team info update?
Quote:
|
Re: [TBA]: Team info update?
Quote:
|
Re: [TBA]: Team info update?
I have no problems with PHP 5.2.6 or wget 1.11.4 irrespective of user agent (the user_agent setting and -U argument respectively). (I forgot how much whitespace they use though.) Try again?
|
| All times are GMT -5. The time now is 19:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi