generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: file_get_contents failing on some m.roblox.com/groups/x

Previous Thread :: Next Thread 
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 08:11 AM
This is weird. Some group pages will allow me to send file_get_contents requests to groups pages while others will return this error: "Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?"

Any ideas?
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 08:25 AM
What's weird is that it's only happening on some groups; others work fine.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 11:46 AM
How lovely, some groups are returning an object moved notice.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
02 Jan 2013 02:28 PM
You apparently don't have SSL configured on your server. I'm actually not sure if you CAN do a file_get_contents over HTTPS...
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 02:37 PM
The file_get_contents() request for some groups, for some reason, results in a redirection to the login page, which is SSL. So that explains why I'm getting that error.

But why does the redirection happen for only some groups?
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
02 Jan 2013 02:41 PM
They might be either 1)Removed 2)Require you to be a member. If it's the 2nd, just put it in a try-catch.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 02:45 PM
The group definitely exists, so I guess it's the latter.

But that's strange considering on the normal site you can still see a group's description even if you aren't a member.
Report Abuse
mintwaffles is not online. mintwaffles
Joined: 11 Jan 2012
Total Posts: 179
02 Jan 2013 03:17 PM
Whoa man. You are like a total script man. I bet nobody is as good as you. Man I can't even imagine your intelligence!
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
02 Jan 2013 03:18 PM
Can't tell if sarcasm or...
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Jan 2013 03:22 PM
^I'm not sure either, let's just ignore him, it might be contagious.
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 04:07 PM
Maybe your next best bet would be fopen() ?
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 04:10 PM
^Sadly not, I think I'll have to use cURL to log in before I try to visit the page.
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 04:22 PM
Why would you want to be getting the contents of a group page on the mobile site?
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 04:25 PM
For my rank checker, I want to get the name, owner, picture and description of a group from its id. The mobile site is easier to parse than the desktop one.
Report Abuse
k9rosie is not online. k9rosie
Joined: 05 Jul 2008
Total Posts: 14339
03 Jan 2013 04:35 PM
I would have recommended using curl in the first place. It's much faster also.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 04:42 PM
But it requires more effort. :C
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 04:50 PM
@triston220

There's got to be some sort of ROBLOX API calls that you should be able to access after some looking around..
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 04:50 PM
I've looked but to no avail Hopefully Sorcus will get one written for us. :3
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 04:53 PM
@triston220

There's already one there. It's used by the various group functions within the player object. I'm guessing at elast.
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 04:54 PM
least*
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 04:56 PM
You can use IsInGroup() and the GetGroupRank and GetGroupRole functions.

http://www.roblox.com/Game/Join.ashx
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 05:12 PM
@triston220

try file_get_contents("http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=1&groupid=63")


Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 05:15 PM
Yeah, that works, but I can't get any more group information. :C
Report Abuse
CLIPSE is not online. CLIPSE
Joined: 29 Jan 2010
Total Posts: 9723
03 Jan 2013 05:18 PM
@triston220

In that request I just posted, you can set the "method" URL variable to IsInGroup, GetGroupRank, and GetGroupRole.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
03 Jan 2013 05:19 PM
IK, I'm already using those, but there's no way to get the name, owner logo or description of the group via an API, is there?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image