Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2005, 02:30 PM
Registered User
 
Join Date: Jun 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Capturing\Reading File Contents into DB with PHP

  What I need is the ability where user will 'upload' a file to my server, but instead of storing it as an actual file, I want to store it in a database and provide pointers to that file in the database that will uniquely identify it to other users in a list of downloadable files. I then want to allow another user to 'download' that 'file' and view or save it in the original application. So if it was a Word .doc file, it would display in Word. I will be working mostly with Microsoft Word and Excel files.
   I have the user file-selection piece on both ends working, but the file contents apparently are not being stripped into the database correctly, and hence I have no file for the end user.
   Suggestions?

-aingalsbe
 
Old April 21st, 2005, 07:24 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Store filename/url into db

 
Old December 30th, 2005, 09:48 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to aatayyab Send a message via AIM to aatayyab Send a message via MSN to aatayyab Send a message via Yahoo to aatayyab
Default

how do you store filename and url into db?

amir


Best Regards,

Amir Ali Tayyab
IT Consultant since 1988
http://softwarepk.com
aatayyab@yahoo.com
Cell: 92-333-4779799
Address: 49-MZ, Central Plaza, Garden Town, Lahore, Pakistan





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML contents reading in C# (desktop application) aliusmankhan C# 2005 2 October 30th, 2008 08:03 AM
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 05:13 PM
Reading contents of other window controls furqanms C# 2005 0 June 15th, 2007 02:04 PM
Capturing date from transferred file Axxess Access VBA 2 July 18th, 2005 05:21 AM
multiple reading from db dannyphw Classic ASP Databases 2 October 21st, 2004 11:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.