PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2013, 02:27 PM
tjswebdev tjswebdev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 69 tjswebdev User rank is Private First Class (20 - 50 Reputation Level)tjswebdev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
Send a message via Skype to tjswebdev
Exclamation Minecraft Querying System

Hello!

Please help me!

I am in the process of making a Minecraft Querying system and I have got the design and the server and info being pulled from the database done. I am running across problems using this code: https://github.com/xPaw/PHP-Minecraft-Query/blob/master/MinecraftQuery.class.php. I want about ever 10 - 15 mins by a cron job that script to run and it will pull all of the information from the database where servers are stored ( it will pull the ip and port) then it will test all of the servers, then the results will update the plugins, players online, etc, etc.

I am a little stuck here and any help would be greatly appreciated. And my project's site is here: http://mcss-portal.com/beta/.

Thanks,
TJ

Reply With Quote
  #2  
Old February 9th, 2013, 02:57 PM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,885 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 3 Days 8 h 17 m 9 sec
Reputation Power: 581
We are not clairvoyant. What problems?

Also don't make us go to anther site to find your code (few are willing to bother). Post it here, that is what this form is for. Be sure to format your code properly and use [ PHP ] tags. See the sticky at the top of this forum. Also read ManiacDan's New User Guide. It has hints and tips for debugging your own code.
__________________
There are 10 kinds of people in the world. Those that understand binary and those that don't.

Reply With Quote
  #3  
Old February 9th, 2013, 03:02 PM
tjswebdev tjswebdev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 69 tjswebdev User rank is Private First Class (20 - 50 Reputation Level)tjswebdev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
Send a message via Skype to tjswebdev
Quote:
Originally Posted by gw1500se
We are not clairvoyant. What problems?

Also don't make us go to anther site to find your code (few are willing to bother). Post it here, that is what this form is for. Be sure to format your code properly and use [ PHP ] tags. See the sticky at the top of this forum. Also read ManiacDan's New User Guide. It has hints and tips for debugging your own code.


A.) I don't know how to get the servers in my database to go through the script and then at the end the results are out into the database.

B.) I'm not going to copy all of that code because it is really long. I didn't want people to see code that is long and the flock away.

Thanks,
TJ

Reply With Quote
  #4  
Old February 9th, 2013, 03:11 PM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,885 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 3 Days 8 h 17 m 9 sec
Reputation Power: 581
A.) What is your database schema? Are you asking how to connect to the database from PHP, run queries and output the results? What database are you using.

B.) Just post the sections that are relevant to your question. If we need more, we'll ask for it.

Reply With Quote
  #5  
Old February 9th, 2013, 03:32 PM
tjswebdev tjswebdev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 69 tjswebdev User rank is Private First Class (20 - 50 Reputation Level)tjswebdev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
Send a message via Skype to tjswebdev
Quote:
Originally Posted by gw1500se
A.) What is your database schema? Are you asking how to connect to the database from PHP, run queries and output the results? What database are you using.

B.) Just post the sections that are relevant to your question. If we need more, we'll ask for it.


A.) I need help with queries on how to get that checking of multiple ips and putting the details in the database.

Reply With Quote
  #6  
Old February 9th, 2013, 03:44 PM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,885 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 3 Days 8 h 17 m 9 sec
Reputation Power: 581
Like I said. What is your schema? Where do you get the IPs that you want to insert?

Reply With Quote
  #7  
Old February 9th, 2013, 04:01 PM
tjswebdev tjswebdev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 69 tjswebdev User rank is Private First Class (20 - 50 Reputation Level)tjswebdev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
Send a message via Skype to tjswebdev
Quote:
Originally Posted by gw1500se
Like I said. What is your schema? Where do you get the IPs that you want to insert?


The IPs are in a database in a table. They are in "HostIP". Not sure what else you mean by schema.

Reply With Quote
  #8  
Old February 9th, 2013, 04:07 PM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,885 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 3 Days 8 h 17 m 9 sec
Reputation Power: 581
This is like pulling teeth. What database engine are you using? The schema is the database structure. Tables and columns. What "details" are you trying to insert, what is there relationship to the IPs and were do they come from? What is your PHP and database experience level?

Reply With Quote
  #9  
Old February 10th, 2013, 06:03 PM
tjswebdev tjswebdev is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 69 tjswebdev User rank is Private First Class (20 - 50 Reputation Level)tjswebdev User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
Send a message via Skype to tjswebdev
Quote:
Originally Posted by gw1500se
This is like pulling teeth. What database engine are you using? The schema is the database structure. Tables and columns. What "details" are you trying to insert, what is there relationship to the IPs and were do they come from? What is your PHP and database experience level?

I got it.

Reply With Quote
  #10  
Old February 10th, 2013, 07:34 PM
NotionCommotion NotionCommotion is offline
Contributing User
Click here for more information.
 
Join Date: Sep 2006
Posts: 1,464 NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level)NotionCommotion User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 6 h 21 m 36 sec
Reputation Power: 526
Just lost a minute of my life which I will never get back...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Minecraft Querying System

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap