You are here: Re: good php tutorial on placing images in mysql db on the net? « PHP SQL « IT news, forums, messages
Re: good php tutorial on placing images in mysql db on the net?

Posted by naft on 05/25/05 22:17

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:
>> <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...
>> >> 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
>> >
>> >
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация