Im a newbie in PHP and I want a way to get the current windowsize in PHP. With this size I want to calculate the position of some layers, is there any way to do this in PHP.
Not in PHP, since it runs on the server side only, but this is certainly possible using JavaScript. Try that.