[UPDATE] The problem has been resolved. It was an issue with my code, not with permissions.
I wrote a .php file for a global leaderboard for my game. However, GetAsync returns nil when I try to access it from Studio and it shows the following when I try accessing it from my browser. However, index.php loads up fine. Is this a permission issue and how can I fix it?
Status code 500 means that there is an error in your php. Sharing your code would make it a lot easier to trouble shoot this issue. Make sure you didnât forget any â;â at the end of a line and if youâre passing any params via the URL bar make sure that theyâre defined.
I would be careful using a txt file for storing data like that. I used to do it but after around ~1k entries it would get corrupt. Also it looks like it looks like your passing data via headers, you should use normal data for that.
But for the solution do echo json_encode($leaderboardData); â Nvm I might be wrong
Edit: NVM ignore this post
Yes but if the request method was also âGETâ that if statement would pass. I think that is what causing the error because it canât find the data used on other lines.
No, it wouldnât. Triple equal compares both the value and type. If both are true, itâll pass.
That also wouldnât throw a 500 error. 500 errors can throw in php if error output is disabled. (the ini_set code enables error outputting)