Re: Help me about detect client screen resolution!!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just remember in web context is a server-side language ... so you couldn't
have more information than client would want to send to you

in web context, the navigator send some information to the server (like what
navigator, address, proxy, ...)

so ... has David show you, use javascript for example, and can your php
which screen resolution :

index.html:

<script type="text/javascript">
location.href="index.php?h="+screen.heigth+"&w="
+screen.width;
</script>

=> it will redirect to your php script which $_GET['h'] => heigth client
resolution, and $_GET['w'] => width client resolution

have fun
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32) - WinPT 1.0.1

iD8DBQFFm5XdEg3iyspSWPARAiwbAJ9bFE+m/oFAcka236Xnccjzb6YY/ACdFc8G
FuH5WvpqWEEkhMK0cYHhvOc=
=syLI
-----END PGP SIGNATURE-----

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux