user_agent local vs live

Problems with the Windows version of XAMPP, questions, comments, and anything related.

user_agent local vs live

Postby morris_buttermaker » 23. August 2010 12:36

Howdy, I have a simple if/else line of php detecting user agent, if it's Firefox on OSX, do this, else do that...

It works fine live but not on my local install of xampp.

I tried this too as a check and live it feeds me back the agent, local nothing.

echo "search for firefox: ==" . stristr($_SERVER['HTTP_USER_AGENT'],"Firefox") . "==";

FYI, my file directory is not in the install location, could that have an affect on it?

Posts: 4
Joined: 23. August 2010 12:34

Re: user_agent local vs live

Postby WilliL » 23. August 2010 14:08

this should work.
its difficult to give a right answer for complet discription is missing..

a guess: short_open_tag <? instead of <?php

please use in furure the english part of this forum
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests