I am not getting the name of netscpae browser using $HTTP_USER_AGENT. Can anyone help me to detect netscape browser using PHP?

Regards Aneeesh

    What are you getting? A blank? Try $_SERVER['HTTP_USER_AGENT'];
    A string you don't know what to do with? A Netscape or Mozilla browser's user agent string will contain "Mozilla" and won't contain "compat" (Dunno if Warpzilla qualifies as "Netscape" by that standard, but it is a Mozilla branch, so it might as well.) Then again, there is the [man]get_browser[/man] function, so if the user agent string is already on record, that function will do the job.

      Write a Reply...