Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

HTTPService help! Php Explain?

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

✓ Accepted answer

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.

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

3 comments

1

I don't see anything that is different here?

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.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.