PDA

View Full Version : Can you write a path in the database field that links to an external file on my mac?



Gurkanson
09-26-2013, 02:54 PM
I want to create a local movie database. I was going to create it with MYSQL and PHP. I have created a test server using MAMP. As known, is the MAMP folder in the Applications folder.

But since the movies are heavy - I would not put these files in the same folder. Instead I want to link these from an external hard drive.

Is this possible? Can you write a path in the database field that links to an external file on my mac?

Raz0rEdge
09-26-2013, 05:10 PM
The link is just text, and the database don't know what it is or where it points to. So that doesn't matter. Were you planning on creating a web page that will list these movies and clicking on them would launch them or something?

Gurkanson
09-27-2013, 05:50 AM
OK, good to know. But how will I write the path. file: [drive]: [Folder]: [filename] or: localhost / .. / ..?

cradom
09-27-2013, 09:09 AM
Not familiar with SQL but most paths are like:
/Volumes/drive/folder_or_file
/Volumes is where your mounted drives are.

Raz0rEdge
09-27-2013, 10:11 AM
OK, good to know. But how will I write the path. file: [drive]: [Folder]: [filename] or: localhost / .. / ..?

That depends on HOW you want to load the file..paths in OS X follow the /Volumes/<drive>/<full>/<path>/<to>/<file> format..