At 03:17 10.03.2003, Todd Cary said:
[snip]
I want to display a file under program control in the same manner as one
would with using an a tag e.g.
Click a href=files/raceschedule.pdf Name=Race Schedule
Target=_blankhere/a to open the Race Schedule
In
I want to display a file under program control in the same manner as one
would with using an a tag e.g.
Click a href=files/raceschedule.pdf Name=Race Schedule
Target=_blankhere/a to open the Race Schedule
In other words, if certain conditions are met, then I want to display
the file. What is
Change your link to something like:
a href=view.php?file=raceschedule.pdf ../a
view.php will NOT be a HTML page -- it will be responsible for:
a) some conditional stuff, like checking for a logged in user
b) output an appropriate header for the file type
c) pass through the actual file
On that note, how would i load an image from outside the document root?
- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Todd Cary [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:06 PM
Subject: Re: [PHP] Displaying a file
Change your link
Message -
From: Justin French [EMAIL PROTECTED]
To: Todd Cary [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:06 PM
Subject: Re: [PHP] Displaying a file
Change your link to something like:
a href=view.php?file=raceschedule.pdf ../a
view.php will NOT be a HTML
PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:06 PM
Subject: Re: [PHP] Displaying a file
Change your link to something like:
a href=view.php?file=raceschedule.pdf ../a
view.php will NOT be a HTML page -- it will be responsible for:
a) some conditional stuff, like checking
Todd Cary [EMAIL PROTECTED] wrote:
OK! This makes sense. What is the syntax to do
Hmm, did you read (and try) the article mentioned earlier?
- E
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
--
PHP General
on 10/03/03 3:40 PM, Todd Cary ([EMAIL PROTECTED]) wrote:
OK! This makes sense. What is the syntax to do
b) output an appropriate header for the file type
c) pass through the actual file contents
if I were doing an HTML file - if I were doing a PDF file?
*Slaps forehead loudly*
Did
I've made a website for a real estate appraiser, who wants to put all his appraisals
for his clients online. I have stored these PDF documents in a folder outside of the
webserver folder, for security. When a client successfully logs in and clicks the link
to biew the PDF, I have a PHP script
9 matches
Mail list logo