Re: open a secondary window/tab in the browser from php

From: Date: Mon, 18 Feb 2008 14:52:35 +0000
Subject: Re: open a secondary window/tab in the browser from php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-269478@lists.php.net to get a copy of this message
On Feb 18, 2008 8:55 AM, Jay Blanchard <jblanchard@pocket.com> wrote: > [snip] > not html target, pdf window.... so it can be saved and printed > separately form the application. > [/snip] > > You have to use an anchor tag's target attribute to open the new tab or > window (PHP is server-side and cannot do this); > > <a href="/path/to/my.pdf" target="_blank"> You can also do what sites like H&R Block do - create an IFRAME with the PDF displayed therein. As long as the user has the Adobe Acrobat plugin, the PDF will display inline, complete with all toolbars and scrollbars, allowing them to save and print fine. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#269478) next »