Jump to content


Photo

Storing Image into file?


  • Please log in to reply
1 reply to this topic

#1 Solarpitch

Solarpitch
  • Members
  • PipPipPip
  • Advanced Member
  • 708 posts
  • LocationDublin, Ireland

Posted 18 October 2006 - 06:02 PM

Hi Guys,

Is it possible to upload images into a file on your web apllications folder and reference the file path in the database?

So the user will upload a profile photo, the photo will be stored in "c:\Webapps\Images" and this path possibly stored in $imgPath or something?

How could I achieve this? I am so lost it's not even funny!
Welcome to 9AM Monday, the furthest point away from 5PM Friday.

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 19 October 2006 - 04:19 PM

The DB doesn't know what you're storing in a text field, so sure, you could store the path there.  Personally, I would recommend storing a relative path to some base path that you have in your application for portability.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users