Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

HTTPService help! Php Explain?

Asked by 7 years ago
Edited 7 years ago

Can someone explain me about PHP and how do I make a PHP file? for printing something from an group shout to the output

Why this won't work tho...

------Php File---------------

<?php
echo htmlspecialchars(file_get_contents('https://www.roblox.com/My/Groups.aspx?gid=2621674'))
?>

------Another script [separate]---------

local phpScript = game.HttpService:GetAsync('I need an site to get proxy links too.. would've help me a lot but I got from someone but it doesn't seems to work.')
print(phpScript)

And i'm getting errors both in Test and server test.

Telling me how to make the PHP script would've help me a lot! or explaining...

And also why it doesn't work.

2 answers

Log in to vote
0
Answered by 7 years ago

I tested both your scripts using a local server connecting to localhost and both work just fine, but I think what you want is a proxy.

What you can use is an already existing proxy such as this one. I haven't used any proxies before (in fact this is my first time using HttpService) but it appears to be very good.

Ad
Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

I don't know much about HTTP service, but the problem seems like your string.

--What you did:
local phpScript = game.HttpService:GetAsync('I need an site to get proxy links too.. would've help me a lot but I got from someone but it doesn't seems to work.')
--What you should of done:
local phpScript = game.HttpService:GetAsync("I need an site to get proxy links too.. would've help me a lot but I got from someone but it doesn't seems to work.")

Hope this helps

1
I don't see anything that is different here? Nullstudio 32 — 7y
1
In the string he used different quotations. However, in your string you used the apostrophes twice in the string so it stopped thinking of that as a string from the word "would" and on-wards. KingLoneCat 2642 — 7y
0
Can anyone still tell me how do I use the proxy site IDidMakeThat gave me? I tried http://bit.ly/2bJhpw2 but it won't work. Nullstudio 32 — 7y

Answer this question