473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Office document upload to website (and inserting in MySQL if possible)

Hi,

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.

Thanks,

Pugi!

Please reply to group or to pugilator at yahoo dot com
Jul 17 '05 #1
5 5346
Pugi! a écrit:
Hi,

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.

Thanks,

Pugi!

Please reply to group or to pugilator at yahoo dot com


It is possible to insert almost any binary document into a blob
type field but in most case i would suggest to store the
document outside the database and to store the *address* of the
document into the database.

Blobs make database less efficient due to the variation they
introduce in field lenght.

A blobed (?) binary document also takes more space than the
original one.

Bonne chance!
--
mv cso /dev/null
Marc Nadeau# La Pagerie /* http://www.pagerie.com */
Jul 17 '05 #2
"Pugi!" <ge*****************@yahoo.com> wrote in message
news:c2**********@news.worldonline.be...
Hi,

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.

Thanks,

Pugi!

Please reply to group or to pugilator at yahoo dot com


Just my opinion, not everything should be stuck into a db. Perhaps stick
all the files in a directory, and rename them something uniq, and store the
uniq file name in the db with the original file name.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #3
On Mon, 8 Mar 2004 20:02:20 +0100, "Pugi!"
<ge*****************@yahoo.com> wrote:
Hi,

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.


I'm not 100% sure that I understand what you're trying to do.

But if you want to get the *data* from Excel / Access into a MySQL
table, then that is pretty straightforward...
--
UK Computer stuff from Morgan Auctions. Bids start at £1. No reserve. Sign up NOW!
<http://www.bizorg.co.uk/shopping/morgan.php>
Track a Mobile phone: <http://www.bizorg.co.uk/news.html>
Jul 17 '05 #4
"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
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #5

"Pugi!" <ge*****************@yahoo.com> wrote in message
news:c2**********@news.worldonline.be...
Hi,

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.

Thanks,

Pugi!

Please reply to group or to pugilator at yahoo dot com


I think I get what you want to do, do you want to have a form on a webpage,
where you specify the path of it on that pc, and then be able to upload it
to a folder on the server. Then, you store the details, such as original
filename, current filename, location etc. in the database.

I know this is possible, but I've never managed to do it myself. Try looking
in PHP and MySQL, it's by Larry Ullman and is published by Peachpit Press.
There is something towards the back of the book about file uploads, and it
gives an example of a solution like I explained above
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave White | last post by:
Hi All, I need to create a simple document library - basic features to include the users being able to select a category / sub-category and view a list of files / descriptions that match the...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
2
by: Otto Leholt | last post by:
Hi I have made several website using MS Access and asp. Now I need to upgrade from Accesss to MYSQL - I got my website working with MYSQL on my local PC - but now the problem is how I get it...
0
by: martinb2007 | last post by:
Hi everybody! From Buenos Aires. A brief explanation of the application I'm developing. Any help or discussion about welcomed. I'm developing a Documents Manager that allows to upload office and...
31
by: Manfred Kooistra | last post by:
If I have a document like this: <html> <head> <script language=javascript> window.location.href='file.php'; </script> </head> <body> body content
0
ammoos
by: ammoos | last post by:
hiiii friends...i want to upload some selected mysql datarecords from my offline system which is written in vb to online system which is made by asp.net with vb. i also want to make some processing...
1
by: lmp1 | last post by:
I'm trying to upload a .xlsx document onto a website. I need viewers to be able to edit sections of the document without downloading the document onto their computer. I also need each viewer to have...
5
AutumnsDecay
by: AutumnsDecay | last post by:
Hey there. I have a website that works like the following: A Javascript / PHP photo gallery is displayed on the page, cycling through 3 images that are uploaded. These images are coded into a...
1
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.