Bluehost.com Web Hosting $6.95

file paths and binaries

This is a discussion on file paths and binaries within the PHP General forums, part of the PHP Programming Forums category; Greetings all, I'm looking for a tutorial or some assistance in explaning how store and then open and read ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2003
Anthony Ritter
 
Posts: n/a
Default file paths and binaries

Greetings all,
I'm looking for a tutorial or some assistance in explaning how store and
then open and read a binary file using php/mysql.

I've got a few tutorials about storing the binary data _within_ a mysql
table from Kevin Yank, phpbuilder, etc. but I've heard that it's sometime
better to keep your binaries on the server and not in the database.

Thus, if the developer just keeps the file path in a VARCHAR column like:
C:\apache\images\house.jpg
C:\apache\images\tree.jpg
etc...

and then directs that file be

fopen()
fread(), etc.
it will work without the added overhead.

I'm a bit lost in what happens after the filepaths are inserted into the
database and what steps follow in the script so that they can be opened and
read.

Any help, URL's or tutorials will be of assistance.
Thank you.
TR
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0