Display image files from path in database.
Moderator: General Moderators
Display image files from path in database.
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.
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.
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.
These images are located on the local machine.