Page 1 of 1

$_server (http_user_agent etc.)

PostPosted: 15. September 2011 18:31
by Bjh83
I got problems with http_user_agent (and more..) when i use it on xampp. I have tried to find a solution other places but people does'nt seem to know it, so i am trying to see if people around here can help me.....

When i use it the page is blank..... Nothing happens.

Re: $_server (http_user_agent etc.)

PostPosted: 15. September 2011 18:38
by Altrea
case sensitivity?

$_server['http_user_agent'] != $_SERVER['HTTP_USER_AGENT']

Re: $_server (http_user_agent etc.)

PostPosted: 15. September 2011 18:43
by Bjh83
Anybody who knows $_SERVER[HTTP_USER_AGENT]? :(

Re: $_server (http_user_agent etc.)

PostPosted: 15. September 2011 18:46
by Altrea
I want to help you, but you have to give much more information!

- Is your display_errors setting activated and error_reporting minimum E_ALL?
- how does your sourcecode look like?
- What problem do you have with $_SERVER['HTTP_USER_AGENT']?
- Have you read the php.net documentation for $_SERVER?

Re: $_server (http_user_agent etc.)

PostPosted: 15. September 2011 19:12
by Bjh83
I have taken look at it but i have encountered something.. Ill have to wait explaining it till tomorrow. Maybe around 9.30-10.00 tomorrow..... I may have solved the problem on my Nas but xampp wont run php files but opens it so the source code can be read and php in html files is'nt displayet. I Will take a look at it before i tell you whats wrong.... Sorry....

Re: $_server (http_user_agent etc.)

PostPosted: 16. September 2011 09:32
by Bjh83
i have solved the problem on my nas, and file association may result in an error when i run php-files from webdav(it opens the file in ie etc. so the files can be read instead of runned.
i have opend the file association program in windows but i canĀ“t un-check "allways run this file in the selected program"

Re: $_server (http_user_agent etc.)

PostPosted: 16. September 2011 11:56
by Altrea
Bjh83 wrote:when i run php-files from webdav(it opens the file in ie etc. so the files can be read instead of runned.

Sure. That's the sense of webDAV