Help with PHP and SaMP Query - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with PHP and SaMP Query (
/showthread.php?tid=614064)
Help with PHP and SaMP Query -
HidroDF - 04.08.2016
Hello!
I recent upload my SAMP Server page to a paid webhosting. The web has the last samp_query.php inserted. In my XAMPP server (on localhost) works so fine but when I've upload the site to the Hosting, the page says that the server is offline.
Anyone knows how I can fix it?
Re: Help with PHP and SaMP Query -
Fantje - 04.08.2016
I've had the same thing. Maybe because the php version on the host is outdated?
Respuesta: Help with PHP and SaMP Query -
HidroDF - 04.08.2016
I don't think it's the PHP version. I have the same on XAMPP as localhost and on my hosting.
Re: Help with PHP and SaMP Query -
BroZeus - 04.08.2016
If have your own vps then it should work.
Else it wont because hosts don't allow use of socket functions which samp query api uses.
Two ways to overcome this :
- Talk to your host and ask them to enable socket function
- Use Api indirectly that is hosted on someone else vps, I have it on mine, I will tell how you can access it when I will open my pc
Respuesta: Re: Help with PHP and SaMP Query -
HidroDF - 04.08.2016
Quote:
Originally Posted by BroZeus
If have your own vps then it should work.
Else it wont because hosts don't allow use of socket functions which samp query api uses.
Two ways to overcome this :
- Talk to your host and ask them to enable socket function
- Use Api indirectly that is hosted on someone else vps, I have it on mine, I will tell how you can access it when I will open my pc
|
Thanks Zeus, if you can provide me the information you'll help me a lot!!!