silently use PHP/Javascript to get user's resolution
<p>I was wondering if I can use PHP and Javascript to get the screen resolution from my users. Altho this is a simple thing, I was wondering if I can execute the JavaScript within a PHP statement and not output the Javascript code to the browser as HTML</p>

<p>I thought maybe putting it in an EOF block, but that didn't work, the output was the actual script haha.</p>

<p>I want to be able to populate a <code>$width</code> and <code>$height</code> within my PHP script and create a variable to look something like</p>

<p><code>$resolution = 800x600</code></p>

<p>I know I can place the javascript in the HTML page and then have a PHP block capture the javascript output, but I am using the Smarty template engine and have disabled the use of PHP within the templates for security reasons.</p>

<p>Is there a way to accomplish this?</p>

<p>I don't want to use the resolution for any url manipulating but rather to store the information for my statistical reasons. </p>
