Jump to content


Photo

NuB who needs help


  • Please log in to reply
6 replies to this topic

#1 Airborne328

Airborne328
  • Members
  • PipPip
  • Member
  • 12 posts
  • LocationUSA, Delaware

Posted 05 August 2006 - 07:29 AM

Hello eveyone.  First I hope I am posting in the right place.

I am trying to c reate a simple check system/code, that will check against a list of server IP's that is kept updated


I have created a folder "aasadata" and placed within it a ServerCheck.htm and the streaming.php "showign the list of streaming IP's"

Below is the htm

http://www.combatlif...ServerCheck.htm

When I enter say my servers IP of 208.167.224.122. which I  know is streaming i get

The page cannot be found


Addy for that..

http://www.combatlifesavers.us/aasadata/streaming.php?serverip=208.167.224.122&serverport=1716

I am assuming my error is not having the secondary code page for the actual search.  Thing is, I am a NuB at doing this, and I am stuck.  Dont know where to start to create this simple code page.

Below is the source code for my ServerCheck.htm

<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #000000;
}
-->
</style>
<img src="aasa.gif">
<form action="streaming.php" method="GET">
Server IP : Port(if necessary)
<br>
<input type="text" name="serverip" size="15" maxlength="15">:
<input type="text" value="1716" name="serverport" size="5" maxlength="7">
<input type="submit" value="Check streaming">
</form>


Any help or info would be greatly appreciated

Thanks in advance

#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 05 August 2006 - 12:17 PM

Are you sure you have that streaming.php file created ?

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 Airborne328

Airborne328
  • Members
  • PipPip
  • Member
  • 12 posts
  • LocationUSA, Delaware

Posted 05 August 2006 - 07:50 PM

Yes the streaming.php file created and sits in the same folder as the ServerCheck.htm


aasadata/ServerCheck.htm
aasadata/streaming.php

I am assuming I am missing the code/page to do the actually search, that where I am a NuB and stuck ???

edit

Now reviewing, I see  needed to change the name of php, to streaming.php, I had it originally StreamingServer.php.  But instead of it searching and giving and answer "yes" or "no" your streaming now.  It takes you to the streaming page.  ???

NuB in desperate need of assistance


>:( :( :o ??? 

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 05 August 2006 - 09:10 PM

what this all about ?


Put the ip's in a database and do a check if the ip exist goto that page simple.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#5 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 05 August 2006 - 10:41 PM

What is the code in streaming.php you are having a problem with, what does it do or not do and what do you actually want it to do?
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.

#6 Airborne328

Airborne328
  • Members
  • PipPip
  • Member
  • 12 posts
  • LocationUSA, Delaware

Posted 05 August 2006 - 10:48 PM

If you got to this link, you see uptop >> Check if server is streaming << Click it and enter any IP, you get a response of yes or no to your streaming.  I am trying to some thing similar

http://www.anticheat...orums/index.php

Now when you try what I have done "posts above", you go directly to the streaming.php.  So it seems I am missing a search function, just not sure what to do in order to create it.

#7 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 06 August 2006 - 03:40 AM

You need to edit your streaming.php,
at the page you should have something like...

<?php
$serverip = $_GET['serverip'];
$serverport = $_GET['serverport'];
if (isset($serverip))
{
	if (isset($serverport))
    {
    	// here will be the scripts that checks the online status.
    }
}
?>

P.S: I don't know how your online status works, so I can't give you the exact script.\
Btw... Don't call yourself a noob, you just need more pratices. :)

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users