Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
selectric
Regular
Regular


Joined: Aug 06, 2008
Posts: 65

PostPosted: Wed Jan 28, 2009 3:01 pm Reply with quote

Hello and thank you for your time.

I was wondering if anyone can help me the php code(s) to put into a module that will tell me the
- month/day/year
- I.P. address of the visitor currently on the module.

I have a custom module being built, when the user clicks on a confirmation link, I want to log the date info & their IP into a table on my database. Thank you!
 
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Wed Jan 28, 2009 3:40 pm Reply with quote

Have a look at the Site Info block that comes with RavenNuke. Wink
 
View user's profile Send private message
alien73
Involved
Involved


Joined: Sep 15, 2008
Posts: 352

PostPosted: Wed Jan 28, 2009 5:09 pm Reply with quote

$getdate=date("F j, Y, g:i a"); //-> March 10, 2001, 5:16 pm


To get the user ip

$ip=$_SERVER['REMOTE_ADDR'];
 
View user's profile Send private message Visit poster's website
selectric
PostPosted: Wed Jan 28, 2009 6:12 pm Reply with quote

Thank you both
 
alien73
PostPosted: Wed Jan 28, 2009 6:13 pm Reply with quote

Thanks glad to help!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©