Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   Web Design and Hosting (http://www.mac-forums.com/forums/web-design-hosting/)
-   -   Can you write a path in the database field that links to an external file on my mac? (http://www.mac-forums.com/forums/web-design-hosting/303723-can-you-write-path-database-field-links-external-file-my-mac.html)

Gurkanson 09-26-2013 01:54 PM

Can you write a path in the database field that links to an external file on my mac?
 
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 04: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 04:50 AM

How will I write the path
 
OK, good to know. But how will I write the path. file: [drive]: [Folder]: [filename] or: localhost / .. / ..?

cradom 09-27-2013 08: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 09:11 AM

Quote:

Originally Posted by Gurkanson (Post 1539740)
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..


All times are GMT -4. The time now is 11:56 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.