LD SoftwareBespoke Software, Web Design, Security Consultants and Host Services.

Menu

Sentinel
You have been warned!
We have caught 5848 shameful hackers.

NukeSentinel(tm)

Paypal Referral
Sign up for PayPal and start accepting credit card payments instantly.

Link Exchange
Join our free link exchange

Click Here

 
Gethostbyaddr()

 
 

 
Post new topic   Reply to topic    LD Software Forum Index -> LD Software Support
View previous topic :: View next topic  
Author Message
GazJ


Newbie


Joined: Aug 01, 2007
Posts: 1

PostPosted: Wed 01 Aug 2007, 05:27     Post subject: gethostbyaddr() Reply with quote

hey i installed who is where 1.5 on a nuke 7.6 based package i am working on and i got this error
Warning: gethostbyaddr(): Address is not in a.b.c.d form in C:\apache2triad\htdocs\NextGens\admin\modules\who_2.php on line 405

just wondering can i change that call to the normal get ip address function?


and another question can i use this mod in a cms release i have planned for the near future?
Back to top
Affamole


Site Admin
Site Admin


Joined: Nov 09, 2005
Posts: 1276
Location: United Kingdom

PostPosted: Wed 01 Aug 2007, 12:49     Post subject: Reply with quote

Hi GazJ,

I move your post to the LD Software Support forum!

gethostbyaddr() is a php function!

php.net wrote:

gethostbyaddr

(PHP 4, PHP 5)

gethostbyaddr — Get the Internet host name corresponding to a given IP address
Description
string gethostbyaddr ( string $ip_address )

Returns the host name of the Internet host specified by ip_address.
Parameters

ip_address

The host IP address.

Return Values

Returns the host name or the unmodified ip_address on failure.


The error message that you are getting is not an error with the function. You may find that you are passing a CIDR range instead of an ip number, you will need to check the ranges in the whoisonline table.

However you are using an OS that does not truly support php (windows), switch over to Linux, BSD or Unix which is free. This site is hosted on a Linux web server.

GazJ wrote:
just wondering can i change that call to the normal get ip address function?


What do you call the normal get ip address?
I use a standard php network function.
The code is released under GPL so you can change what ever you like. Just remember to leave the Licensing Information intact.

GazJ wrote:
and another question can i use this mod in a cms release i have planned for the near future?


Yes of course you can just remember to leave the copyright information intact and a link to LD Software.
Back to top
Display posts from previous:   
Time synchro. with the server - Timezone/DST with your computer
Post new topic   Reply to topic   Download Topic   Printer-friendly version    LD Software Forum Index -> LD Software Support
Page 1 of 1
 

 

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 

 

Powered by phpBB © 2001 phpBB Group
phpBB port v2.1 based on Tom Nitzschner's phpbb2.0.6 upgraded to phpBB 2.0.4 standalone was developed and tested by:
ArtificialIntel, ChatServ, mikem,
sixonetonoffun and Paul Laudanski (aka Zhen-Xjell).

Version 2.1 by Nuke Cops © 2003 http://www.nukecops.com

LD Software  
 
Forums ©
You can syndicate our News with backend.php And our Forums with rss.php
You can also access our feeds via Feedburner Site News and LD Software Forums
© 2009 ld-software.co.uk All Rights Reserved.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.23 Seconds