Page 1 of 1

Display image files from path in database.

Posted: Fri Jan 16, 2009 6:39 pm
by logike30
I have a database contains path information that points to images on the hard drive ie.. c:\images\picture01.jpg. I'd like to use this entry to display the image on the website with PHP. From what I understand, I'd have to flip the backslashes to forward slashes first.. is this correct? If so, how? If not, what other method is there to take this directory/file entry and display it. The image files are not located in the database, just the path and some exif info. Thanks for any help!

Re: Display image files from path in database.

Posted: Fri Jan 16, 2009 7:22 pm
by requinix
A simple search-and-replace will work fine.

Are these images available over the internet (if you know the path)? If not you'll need a special PHP script to display one.

Re: Display image files from path in database.

Posted: Fri Jan 16, 2009 7:25 pm
by logike30
These images are located on the local machine.