Jump to content

Recommended Posts

HAHAHAHAHA.... Thats one of the things I love about this site. There are some highly intelligent people who come up with brilliant ways to be a complete smart ass. Rather than just saying "Give more info" Crayon Violent went the extra mile to do it creatively.  Gold star to you Crayon Violent.

 

How exactly do I make a database that links to somewhere in the Filemanager???

 

I assume by filemanager you mean file system, as in you want to store the file in the file system and have the db remember where it is?? Databases don't link to anything. They store information. What information is stored is completely up to the person who created it.

 

I am going to assume again because my mind reading hat is at the cleaners. I assume that your wanting to do an image gallery type deal.

 

So.... you would store the files in /wherever/the/hell/you/want/on/your/server

 

That is a known that you would code in your php script as the storage location don't change*.

 

In the DB you would then store the name of the file, or even the complete path if you so choose.

 

*this is not a completely accurate statement, as you may want to store in sub-directories and such so the storage path *may* change

 

Thats the best i can do without my mind reading hat.

 

Nate

Link to comment
https://forums.phpfreaks.com/topic/108197-databases/#findComment-554663
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.