Claydoo Posted May 18, 2018 Share Posted May 18, 2018 I understand the whole SL to PHP HTTP request and receiving the response, but how would I have the PHP script send a request of it's own inworld to a object? Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted May 18, 2018 Share Posted May 18, 2018 I'm not very experienced in this field, but this should point you in the right-ish direction: http://wiki.secondlife.com/wiki/LlRequestURL Link to comment Share on other sites More sharing options...
Claydoo Posted May 18, 2018 Author Share Posted May 18, 2018 I do understand you need to request a Url to point it towards, im just unsure how to write it within PHP that it sends it in world to that address you get. Link to comment Share on other sites More sharing options...
Berksey Posted May 19, 2018 Share Posted May 19, 2018 "how to write it within PHP that it sends it in world to that address you get" sounds like you're asking about protocols, how to get the PHP script on the server to communicate with the LL servers, is this correct? I haven't done much with PHP in a while, though I have a lot of experience with running servers and running scripts on them. I've never done anything involving HTTP-to-SL, but it sounds like your question is more about PHP than LSL. I googled "php scripting second life server protocol", and here are two results, they might be helpful, Iunno. http://wiki.secondlife.com/wiki/LSL_HTTP_server/examples http://wiki.secondlife.com/wiki/User:Nik_Organiser/LSL/Articles/HTTP_Requests_From_PHP_On_Default_Ports Hope it helps you in some way, even if indirectly. Link to comment Share on other sites More sharing options...
Lindens Rider Linden Posted May 21, 2018 Lindens Share Posted May 21, 2018 Create an LSL HTTP server using a scripted object in world. That object will be assigned a URL that you can hit from your PHP script. I believe that the URL will be persistent until the script (or the region?) is restarted. You can find some examples here. 2 Link to comment Share on other sites More sharing options...
Kyrah Abattoir Posted May 21, 2018 Share Posted May 21, 2018 Use CURL. Link to comment Share on other sites More sharing options...
Claydoo Posted May 21, 2018 Author Share Posted May 21, 2018 I did attempt to use CURL from examples I saw, however it never seemed to work which leads me to believe 1 I am doing it wrong or 2 my Host Provider maybe doesn't allow it. Link to comment Share on other sites More sharing options...
Scaler Rexen Posted May 22, 2018 Share Posted May 22, 2018 On 5/21/2018 at 12:32 PM, Claydoo said: I did attempt to use CURL from examples I saw, however it never seemed to work which leads me to believe 1 I am doing it wrong or 2 my Host Provider maybe doesn't allow it. I was doing a project awhile back and I found out my host did not allow any outbound communication ports other than the standard I believe the ports were 12046 for HTTP and 12043 for HTTPS. You'd have to ask your host if they'll open them for you. 1 Link to comment Share on other sites More sharing options...
Claydoo Posted May 22, 2018 Author Share Posted May 22, 2018 (edited) That's might very well be the reason then why it's not working. I just checked and yeah the only ports open currently are 80 and 443 so the standard ones. Edited May 22, 2018 by Claydoo Link to comment Share on other sites More sharing options...
Claydoo Posted May 22, 2018 Author Share Posted May 22, 2018 So is there a special reason SL is using different ports then the standard ones, cause this seems just annoying. Link to comment Share on other sites More sharing options...
Scaler Rexen Posted May 23, 2018 Share Posted May 23, 2018 I have no clue as to why they're on a different port. I'm sure they've got a very good technical reason for it being different I just have no idea. Link to comment Share on other sites More sharing options...
Claydoo Posted May 24, 2018 Author Share Posted May 24, 2018 All I can say is im frustrated to no end that Sl has to use some special ports other then default making it just difficult for everyone, now maybe this may be different in other countries and Web Hosting but no Web Hosting company around me will open random ports unless you own a dedicated Server. Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted May 25, 2018 Share Posted May 25, 2018 (edited) 8 hours ago, Claydoo said: All I can say is im frustrated to no end that Sl has to use some special ports other then default making it just difficult for everyone, now maybe this may be different in other countries and Web Hosting but no Web Hosting company around me will open random ports unless you own a dedicated Server. It's a matter of security, not just for your annoyance. Edited May 25, 2018 by Wulfie Reanimator 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now