Jump to content

Recommended Posts

Posted

I am working on my first home-grown MySQL database. :dance:

 

Would like some advice on how to handle files uploaded and permissions. We will have CAD files (and jpg images) that would be "uploaded" to a directory via an "add DB record" php page. The files need to be viewable to PHP/FTP/HTTP users. i.e I add a record with all the info and "Browse..." to the CAD and jpg files. the php webpage adds the DB entry and uploads the files to my specified directory. The files would have 3 ways for a user to get them, via FTP, via MySQL search (given a link) and via HTTP (I am using e-dir).

 

Am I correct that files uploaded by PHP are assigned the owner of apache and are unreadable to other users? If this is correct is there an easy way around this? I would like to have 1 page to add the complete information, and not have a user have the need to ftp the files and enter the SAME info for the DB record, you all know how carefull most users are, lmoa.

 

Rock Sign

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...