Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
get IP address
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
get IP address
El Forum
Unregistered
#1
03-27-2012, 08:33 PM
[eluser]Josssi[/eluser]
Hi people,
can you give me an advice how could I save IP address and current date by login?...I have to store this data into database, but I dont know how to get it. Can you help me sobebody please???
El Forum
Unregistered
#2
03-27-2012, 11:09 PM
[eluser]solid9[/eluser]
Getting ip address,
Code:
$ip=$_SERVER['REMOTE_ADDR'];
Saving current date, you can use MySQL now().
El Forum
Unregistered
#3
03-28-2012, 12:45 AM
[eluser]CodeIgniteMe[/eluser]
In the Input class, there is a method which is accessed using
Code:
$this->input->ip_address();
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB