rgb192
asked on
write logging information to php file
using php,
i want to write
datetime
browser
ip address
to a textfile
i want to write
datetime
browser
ip address
to a textfile
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this saves information in a logfile
thanks
thanks
You are welcome - thanks for the points.
ASKER
and thanks for the built in error_log function
DATETIME information is available in PHP date() or the DateTime class object.
Browser and IP are found in $_SERVER and while not 100% reliable they are mostly useful. Use phpinfo() and look at the bottom of the output to find the $_SERVER information.