Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

good php tutorial on placing images in mysql db on the net?
i am looking for a good tutorial on how to place (links to) images in a
mysql database.
anyone a good address?
my major problem is finding out what the url of the db is, in order to have
correct paths to the image to put in the db
thanks



Report this thread to moderator Post Follow-up to this message
Old Post
naft
05-23-05 08:56 PM


Re: good php tutorial on placing images in mysql db on the net?
"naft" <xman(removespa-m-)@naft(removespa-m-).be> wrote in message
news:Tplke.99074$HH1.5647396@phobos.telenet-ops.be...
> i am looking for a good tutorial on how to place (links to) images in a
> mysql database.
> anyone a good address?
> my major problem is finding out what the url of the db is, in order to
have
> correct paths to the image to put in the db
> thanks
>
>

You are looking in the wrong direction... there is not a 'URL' for paths
to the images in the database.  You have to first store the images in the
database, then write a script that will retrieve the desired image when
requested.  What is your knowledge of PHP and databases?

Norm
--
FREE Avatar hosting at www.easyavatar.com



Report this thread to moderator Post Follow-up to this message
Old Post
Norman Peelman
05-24-05 08:56 AM


Re: good php tutorial on placing images in mysql db on the net?
<snip>first store the images in the database<snip>

Why? why not just upload all images to the same (set of) directories and
(simultaneously) store the filename and any other relevant information?

My question sounds rhetorical but it isn't. I'd genuinely like to know the
pros and cons of the method naft (kind of describes). Does it make a
difference if images are being uploaded over the Web rather than directly by
the database administrator? Also, does anyone know of a decent tutorial on
setting up a site of the kind that I describe?

thanks


"Norman Peelman" <npeelman@cfl.rr.com> wrote in message
news:_fuke.66531$IO.34728@tornado.tampabay.rr.com...
> "naft" <xman(removespa-m-)@naft(removespa-m-).be> wrote in message
> news:Tplke.99074$HH1.5647396@phobos.telenet-ops.be... 
> have 
>
>  You are looking in the wrong direction... there is not a 'URL' for paths
> to the images in the database.  You have to first store the images in the
> database, then write a script that will retrieve the desired image when
> requested.  What is your knowledge of PHP and databases?
>
> Norm
> --
> FREE Avatar hosting at www.easyavatar.com
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
laptop
05-24-05 01:56 PM


Re: good php tutorial on placing images in mysql db on the net?
The most reliable and efficient way of managing images with a database
is to uplaod the file to a designated directory and store the file
information in the database. Storing files in databases is not
reccomeded at all; due to the numerous reasons.

PHP.NET is the best place to start.
Look into the 'move_uploaded_file()' function.

laptop wrote:
> <snip>first store the images in the database<snip>
>
> Why? why not just upload all images to the same (set of) directories
and
> (simultaneously) store the filename and any other relevant
information?
>
> My question sounds rhetorical but it isn't. I'd genuinely like to
know the
> pros and cons of the method naft (kind of describes). Does it make a
> difference if images are being uploaded over the Web rather than
directly by
> the database administrator? Also, does anyone know of a decent
tutorial on
> setting up a site of the kind that I describe?
>
> thanks
>
>
> "Norman Peelman" <npeelman@cfl.rr.com> wrote in message
> news:_fuke.66531$IO.34728@tornado.tampabay.rr.com... 
in a 
order to 
paths 
in the 
when 


Report this thread to moderator Post Follow-up to this message
Old Post
bigcloud@gmail.com
05-25-05 01:56 AM


Re: good php tutorial on placing images in mysql db on the net?
when storing the file information in the database, how do i know the
relative path, in other words, in what directory is the database located? (i
am new with databases). does it have an extension?


my provider gives me a db which i can control via a control panel in php my
admin, no problem. and an ftp account. no problem. but how to find out where
the db is located on the ftp account.

<bigcloud@gmail.com> wrote in message
news:1116959936.766016.34510@g49g2000cwa.googlegroups.com...
> The most reliable and efficient way of managing images with a database
> is to uplaod the file to a designated directory and store the file
> information in the database. Storing files in databases is not
> reccomeded at all; due to the numerous reasons.
>
> PHP.NET is the best place to start.
> Look into the 'move_uploaded_file()' function.
>
> laptop wrote: 
> and 
> information? 
> know the 
> directly by 
> tutorial on 
> in a 
> order to 
> paths 
> in the 
> when 
>



Report this thread to moderator Post Follow-up to this message
Old Post
naft
05-26-05 01:56 AM


Re: good php tutorial on placing images in mysql db on the net?
naft <xman(removespa-m-)@naft(removespa-m-).be> wrote:

> i am looking for a good tutorial on how to place (links to) images in a
> mysql database.
> anyone a good address?
> my major problem is finding out what the url of the db is, in order to
> have correct paths to the image to put in the db
> thanks

<http://www.sitepoint.com/article/ph...-system-minutes>

Report this thread to moderator Post Follow-up to this message
Old Post
Paul Mitchum
05-26-05 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP SQL archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:27 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.