Re: [PHP] Displaying a file

2003-03-10 Thread Ernest E Vogelsinger
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

[PHP] Displaying a file

2003-03-09 Thread Todd Cary
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

Re: [PHP] Displaying a file

2003-03-09 Thread Justin French
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

Re: [PHP] Displaying a file

2003-03-09 Thread Mark Tehara
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

Re: [PHP] Displaying a file

2003-03-09 Thread Justin French
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

Re: [PHP] Displaying a file

2003-03-09 Thread Todd Cary
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

Re: [PHP] Displaying a file

2003-03-09 Thread - Edwin
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

Re: [PHP] Displaying a file

2003-03-09 Thread Justin French
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

[PHP] Displaying PDF file

2002-09-12 Thread Joseph Szobody
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