Re: Get page height?
| From: | Nathan Cook | Date: | Wed, 16 May 2001 23:26:46 +0000 |
| Subject: | Re: Get page height? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53123@lists.php.net to get a copy of this message | ||
---- DRN <donaldrnoble@NOSPAM.yahoo.com> ----
> Hi, I was wondering if it would be possible to get the page height using php?
This solution is sloppy but in theory it works. I would lean towards using an
fopen() to read the bytes of the page on the server, then based on bytes have
your script decide what to do.
---- Chris Lee <lee@mediawaveonline.com> ----
> plus to compound the fact, JavaScript might be able to get this data
> (cant confirm) but JavaScript will only know what the dimensions are,
> after the page is loaded. you could get the data from JavaScript and
> use a header_redirect to give php that data. sorry I don't have a code
snippet.
JavaScript (AFAIK) can only tell the dimensions of the window/frame the page is
being drawn in.
Nathan Cook
ncook@pcsedu.com