Guest_imported
New member
- Jan 1, 1970
- 0
Hello, PHP'ers
Does anyone know how to determine the screenwidth and the screenheight (resolution) in PHP?
I know a javascript which can determine the resolution, but i'd like it in PHP. Can anyone help me, please. I really need this for my site!
The javascript is:
<script>
// for NN4/IE4
if (self.screen) {
width = screen.width
height = screen.height
}
// for NN3 w/Java
else if (self.java) {
var javakit = java.awt.Toolkit.getDefaultToolkit();
var scrsize = javakit.getScreenSize();
width = scrsize.width;
height = scrsize.height;
}
else {
// N2, E3, N3 w/o Java (Opera and WebTV)
width = height = '?'
}
if (screen.width > 1024) {
}
if (screen.width < 1024) {
}
if (screen.width == 1024) {
}
</script>
Thnx in advance,
Boogey Man
Does anyone know how to determine the screenwidth and the screenheight (resolution) in PHP?
I know a javascript which can determine the resolution, but i'd like it in PHP. Can anyone help me, please. I really need this for my site!
The javascript is:
<script>
// for NN4/IE4
if (self.screen) {
width = screen.width
height = screen.height
}
// for NN3 w/Java
else if (self.java) {
var javakit = java.awt.Toolkit.getDefaultToolkit();
var scrsize = javakit.getScreenSize();
width = scrsize.width;
height = scrsize.height;
}
else {
// N2, E3, N3 w/o Java (Opera and WebTV)
width = height = '?'
}
if (screen.width > 1024) {
}
if (screen.width < 1024) {
}
if (screen.width == 1024) {
}
</script>
Thnx in advance,
Boogey Man