Re: Office document upload to website (and inserting in MySQL if possible)
From: Shawn Wilson (shawn_at_glassgiant.com)
Date: 03/09/04
- Next message: John Wrate: "Please help. Is this php script wrong?"
- Previous message: R. Rajesh Jeba Anbiah: "Re: Don't post here!--Newcomers attention!"
- In reply to: Pugi!: "Office document upload to website (and inserting in MySQL if possible)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 09 Mar 2004 09:46:01 -0400
"Pugi!" wrote:
>
> I would like to upload office-document (doc, xls, ...) using a form to a
> website (apache, php, mysql) in a specific directory and if possible insert
> it into a table (MySQL-db). Is this possible. If yes, how ? You don't have
> to explain it in detail, a link to a website or online manual or example is
> fine.
Handling file uploads:
http://ca2.php.net/features.file-upload
To get the whole think into a database, you'd use the file and mysql commands,
but the general consensus seems to be don't save binary files in the database
unless you have a really good reason. Could you just keep the file in a non-web
accessable folder and use something like readfile(), possibly in conjunction
with some kind of authentication system?
Regards,
Shawn
-- Shawn Wilson shawn@glassgiant.com http://www.glassgiant.com
- Next message: John Wrate: "Please help. Is this php script wrong?"
- Previous message: R. Rajesh Jeba Anbiah: "Re: Don't post here!--Newcomers attention!"
- In reply to: Pugi!: "Office document upload to website (and inserting in MySQL if possible)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|