I am storing $_SERVER['HTTP_USER_AGENT']
of a client in database. What is the recommended length that I could give to varchar(length)
for HTTP_USER_AGENT
?
this website shows value of HTTP_USER_AGENT
. I visited from my PC, and the value is 109 characters long. From this I was planning to give varchar(150), but I want to confirm what can be the maximum value of HTTP_USER_AGENT
. I don't want to give too long length to my varchar.