The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> PHP Development
|
Minecraft Querying System
Discuss Minecraft Querying System in the PHP Development forum on Dev Shed. Minecraft Querying System PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 9th, 2013, 02:27 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 69

Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
|
|
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
|

February 9th, 2013, 02:57 PM
|
|
|
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.
|

February 9th, 2013, 03:02 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 69

Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
|
|
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
|

February 9th, 2013, 03:11 PM
|
|
|
|
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.
|

February 9th, 2013, 03:32 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 69

Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
|
|
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.
|

February 9th, 2013, 03:44 PM
|
|
|
|
Like I said. What is your schema? Where do you get the IPs that you want to insert?
|

February 9th, 2013, 04:01 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 69

Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
|
|
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.
|

February 9th, 2013, 04:07 PM
|
|
|
|
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?
|

February 10th, 2013, 06:03 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 69

Time spent in forums: 14 h 5 m 2 sec
Reputation Power: 1
|
|
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.
|

February 10th, 2013, 07:34 PM
|
|
|
|
Just lost a minute of my life which I will never get back...
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|