473,748 Members | 7,827 Online
Bytes | Software Development & Data Engineering Community
+ 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 5364
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.worldon line.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.u k/shopping/morgan.php>
Track a Mobile phone: <http://www.bizorg.co.u k/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***@glassgian t.com
http://www.glassgiant.com
Jul 17 '05 #5

"Pugi!" <ge************ *****@yahoo.com > wrote in message
news:c2******** **@news.worldon line.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
1961
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 selection and then to be able to download the files as necessary. There would also need to be a simple admin function to allow the admin to upload new files / descriptions. A seach function would be nice but not essential.
3
11762
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 table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
2
5842
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 working on my webhost . I have the right connecting string ( according to webhotels supporter) but how do I transfer my SQL database from local pc to server..?? With MS Access it was very straight forward - I just uploaded my .MDB file to my DB folder...
0
5779
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 other vendors documents to SQL Server (Blobs) and enter the classification data for a document, an asign a circuit of persons who have to approve before being accesible to readers (lists of readers you can add too). I come up to serach for a...
31
4977
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
895
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 on the uploaded data before it saveing to the online database... may i know how can i upload data to my on line sytem.. is it possible to make processing at the time of data upload.. i also want to know how to migrate data from the online database to...
1
1225
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 his/her own copy of the file, such that, if one person edited their copy, it would not affect anyone else's document. Is there a way to do this?
5
1586
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 javascript file / php file. Everytime I want to add a picture, I'll have to ftp the image to the directory and edit the code to add a new picture. What I want to do is this:
1
4883
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 program,which can upload many file in folder.problem is,am unable to save my file name in to database.because i used same name for all input file type as file. i dont know get name of file.below i presented my coding for ur view.fed up with my coding..pls...
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9534
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9366
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4597
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.