Re: Blocking the direct download of a file
| From: | Davi | Date: | Mon, 07 May 2007 15:40:54 +0000 |
| Subject: | Re: Blocking the direct download of a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254500@lists.php.net to get a copy of this message | ||
Em Segunda 07 Maio 2007 12:36, pw escreveu:
> <?php
> $referrer=$_SERVER['HTTP_REFERRER'];
>
> if(strcmp($referrer,"http://www.myweb.com/index.phtml")==0)
> {
>
> header("Location: ./primary.jar");
> }
> else
> {
> header("Location: ./secondary.jar");
> }
> ?>
>
>
> The problem is I get a java.lang.ClassNotFoundException.
>
> Is there a way to change a reference like this
> 'on-the-fly' so to speak?
>
> Is my code wrong and this method can be modified
> to work?
>
Change the content-type?
I don't known how to do it... But I would try it... =]
HTH
--
Davi Vidal
davividal@siscompar.com.br
davividal@gmail.com
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]