Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-25-2005, 08:38 AM
King is offline King
Registered User

Join Date: Jun 2004
Posts: 111

ip online check

I am searching for something, that can check if an ip is online, and this with php.

Found something for dns, but ip's wont work on it... so anyone has an idea?
__________________
www.sourcefreaks.com




Reply With Quote
  #2  
Old 05-25-2005, 08:50 AM
King is offline King
Registered User

Join Date: Jun 2004
Posts: 111

nm, got it already
__________________
www.sourcefreaks.com




Reply With Quote
  #3  
Old 05-25-2005, 09:07 AM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Would be nice if you posted the solution ... might help someone here in future
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #4  
Old 05-25-2005, 02:37 PM
Dr. Bullet is offline Dr. Bullet

Join Date: Feb 2004
Posts: 2,655

Send a message via ICQ to Dr. Bullet
Quote:
Originally posted by DevilDog#1
Would be nice if you posted the solution ... might help someone here in future
Yes, please
__________________
Reply With Quote
  #5  
Old 05-25-2005, 10:17 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

$ip = getnv($REMOTE_ADDR); (in php)
Reply With Quote
  #6  
Old 05-25-2005, 10:22 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Elite to the recuse!!! Thanks man
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #7  
Old 05-26-2005, 03:41 AM
King is offline King
Registered User

Join Date: Jun 2004
Posts: 111

srry, but thats the ip of the person who is browsing.
Was looking for a check to look if a server was online.

Code is:

PHP Code:
$ip "66.98.214.27";
$port "80";

if(
fsockopen($ip$port)){
  print
"NovaHQ is <b>Online</b>";
}else{
   print
"NovaHQ is <b>Offline</b>";

ps... its for tcp, not udp.
__________________
www.sourcefreaks.com




Reply With Quote
  #8  
Old 05-26-2005, 04:54 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

haha sry didn't read the fulll post... sry my fault... anyways that's how you get the ip..and king said how to check it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ip atholon phphq.Net Forums 2 10-11-2007 10:37 PM
IP changes Chrispy Tech Support 3 06-01-2007 07:04 AM
Check check check it out lol Xrated Sigs and Graphics 9 06-27-2005 10:04 PM
IP XenoMorpH Web design and Programming 3 08-20-2003 09:54 PM


All times are GMT -5. The time now is 12:04 PM.




Powered by vBulletin®