![]() |
PHP and user clients?
Do anyone in here know if PHP can read or identify the client which is trying to access the documents on my apache server?
|
$_SERVER['HTTP_USER_AGENT']
|
gee thanks... do you have any experience with this? Do you know where I can find a list of what the different browsers will return or do I have to download and install them all to test?
EDIT: I could prolly ask peeps into these forums to enter the site and take a screenshot of their view, at least some of them, so i guess I am pretty covered. And the reason I need this, is to make sure I don't give any of the users the headache of having trouble using it. Only requirment I will have on my site is that the page will need a user agent with support of HTML 4.01 even though I write the whole site in XHTML 1.0 Transitional mainly for supporting CSS-incompatible browser. |
create an empty text file called phpinfo.php and upload it to your server. set it to 775 and browse to it. there you go, loads of info.
|
Um I am no PHP guru nor FTP guru. Can you declear 775 for me? Is that some sort of file setting or somthing?
EDIT: NM... I figured. File configuration CHMOD to be exact. But what should I expect in return from the file? A source code? |
I was bored so I looked up a bunch of user strings.
PHP Code:
|
lol :up: thanks :)
|
Of course you could just do
PHP Code:
|
My point is to know what browser is accessing the files, so I can return something which is compatible. I want to use CSS and make it possible for those with a CSS-incompatible browser to view as well. NN4 is the lowest I will go this time. Last time I did go all the way down to NN2.
Here take a look :) http://www.aocore.com/test/index.php?language=english |
You'll have to check for version numbers in the user agents then.
|
Usually your server stats contains the info on how many visitors has each browser
|
yep, it does also, but I am not interested in what visitors I have. I wish to have a webpage that supports the users that is going to use this site. I am making it for someone and will not be located at my server eventually
|
| All times are GMT. The time now is 11:00. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.