New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

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


Post Reply New Thread Subscribe

 
Thread Tools
Gurkanson

 
Member Since: Sep 26, 2013
Posts: 2
Gurkanson is on a distinguished road

Gurkanson is offline
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?
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,324
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
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?

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks
Gurkanson

 
Member Since: Sep 26, 2013
Posts: 2
Gurkanson is on a distinguished road

Gurkanson is offline
OK, good to know. But how will I write the path. file: [drive]: [Folder]: [filename] or: localhost / .. / ..?
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,896
cradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud of
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Not familiar with SQL but most paths are like:
/Volumes/drive/folder_or_file
/Volumes is where your mounted drives are.

Craig Domingue - resident redneck.
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,324
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
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..

--
Regards
...Ashwin



Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.
QUOTE Thanks

Post Reply New Thread Subscribe


« Web Server folder | Font "tweaks" working in Safari locally, but not working on "live" site »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
C++ Character Encoding in Mac manis OS X - Development and Darwin 1 01-16-2013 08:05 PM
Mac 10.4.11 back up :Transferring old mac to external HD natethegreat OS X - Operating System 0 07-23-2010 07:09 AM
Let Ubuntu read and write to Mac external drive DrQuincy Other Hardware and Peripherals 2 08-04-2008 11:49 AM
How do I format an external HD so Mac can write to it? Sangs Switcher Hangout 1 02-23-2004 08:00 AM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 06:51 AM.

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

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?