George,

your best bet is to have a table in your database which looks up the name of
the file, based on a more friendly name.

James

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.
Politicalia admin and editor
e: [EMAIL PROTECTED]  :: w: http://www.politicalia.com/
Today's Discussion, Tomorrow's Agenda.
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.


> -----Original Message-----
> From: George Pitcher [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 19, 2001 2:42 PM
> To: MrBaseball34; [EMAIL PROTECTED]
> Subject: Re: [PHP] Delivering NAMED pdf files
>
>
> Yes,
>
> If I download the file as it is named, it is the file I expected, only not
> named the way I wanted.
>
> George
>
> "MrBaseball34" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > >
> > > And the php page which is fileaccess.php:
> > >
> > > <?php
> > > $fp1 = "D:\\Pdf\\" . $fp;
> > > $len = filesize($fp1);
> > > header("Content-Type: application/pdf");
> > > header("Content-Disposition: inline; filename=$fp1");
> > > header("Content-Length: $len");
> > > readfile($fp1);
> > > ?>
> >
> > Have you CHECKED the value of $fp?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to