Help with PHP and SaMP Query
#1

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?
Reply
#2

I've had the same thing. Maybe because the php version on the host is outdated?
Reply
#3

I don't think it's the PHP version. I have the same on XAMPP as localhost and on my hosting.
Reply
#4

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
Reply
#5

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!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)