Results 1 to 5 of 5
  1. #1


    Member Since
    Sep 26, 2013
    Location
    Malmö
    Posts
    2
    Specs:
    Mac Book Pro 2011
    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?

  2. #2

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    10,255
    Specs:
    27" i7 iMac, 15" Macbook Pro TB, 13" Macbook Air, iPhone 6S, iPod Nano 7th Gen
    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?
    Mac-Forums is shutting down in the near future. Read this thread to learn more.

    --
    Regards
    ...Ashwin


  3. #3


    Member Since
    Sep 26, 2013
    Location
    Malmö
    Posts
    2
    Specs:
    Mac Book Pro 2011
    How will I write the path
    OK, good to know. But how will I write the path. file: [drive]: [Folder]: [filename] or: localhost / .. / ..?

  4. #4

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,761
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    Not familiar with SQL but most paths are like:
    /Volumes/drive/folder_or_file
    /Volumes is where your mounted drives are.
    Any priest or shaman must be presumed guilty until proved innocent.

  5. #5

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    10,255
    Specs:
    27" i7 iMac, 15" Macbook Pro TB, 13" Macbook Air, iPhone 6S, iPod Nano 7th Gen
    Quote Originally Posted by Gurkanson View Post
    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..
    Mac-Forums is shutting down in the near future. Read this thread to learn more.

    --
    Regards
    ...Ashwin


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot write to external HD anymore on mac
    By meddleonthemoon in forum macOS - Operating System
    Replies: 3
    Last Post: 04-18-2013, 10:07 PM
  2. Symbolic links and reported path
    By seandavi in forum macOS - Operating System
    Replies: 0
    Last Post: 08-19-2010, 07:43 AM
  3. How do you write a file in your mac and made it readable on iphone's Notes?
    By seasurfer in forum iPhone Hardware and Accessories
    Replies: 4
    Last Post: 12-16-2007, 11:48 AM
  4. need to know how to write path to folder on local network
    By nick_harambee in forum macOS - Operating System
    Replies: 1
    Last Post: 08-11-2007, 01:18 PM
  5. How do I format an external HD so Mac can write to it?
    By Sangs in forum Switcher Hangout
    Replies: 1
    Last Post: 02-23-2004, 09:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •