masternick Posted June 1, 2008 Share Posted June 1, 2008 How exactly do I make a database that links to somewhere in the Filemanager??? Quote Link to comment https://forums.phpfreaks.com/topic/108197-databases/ Share on other sites More sharing options...
.josh Posted June 1, 2008 Share Posted June 1, 2008 <?php class chalkboard { function writedown ($msg, $num) { for ($x = 1;$x <= $num; $x++) { echo "$x : $msg <br />"; } } } $chalk = new chalkboard(); $chalk->writedown("I will provide more info.", 100); ?> Quote Link to comment https://forums.phpfreaks.com/topic/108197-databases/#findComment-554605 Share on other sites More sharing options...
DarkerAngel Posted June 1, 2008 Share Posted June 1, 2008 LOL @Crayon Violent, my thoughts exactly... Quote Link to comment https://forums.phpfreaks.com/topic/108197-databases/#findComment-554606 Share on other sites More sharing options...
chronister Posted June 1, 2008 Share Posted June 1, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/108197-databases/#findComment-554663 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.