473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to open local files in a mac via browser

Hi,
I am making a database based PHP site for my friend to run locally on his mac.

He wants a page where he can click on a link to his most used files - word docs etc. stored on his desktop for instance.

I thought this would be easy by using the following;-

Expand|Select|Wrap|Line Numbers
  1. <a href='file:///folder/word.doc'>Open file</a>
  2.  
I tested this on my PC at work (NOT on local webserver) and it opened files fine for me however I can't seem to open files on the mac via http://localhost/...

Can anyone shed some light on this please ?
Could this be a permissions issue ??

Help much appreciated as I'm pulling my hair out
Phil
Jul 8 '11 #1
2 4512
phil gent,

even though this is not a html/css question i can safetly say that this is probably caused by not having a mac php server set up on the mac system.
if you would like to learn more on this subject invloving opening files on windows, mac, and linux/unix systems please refer to these published writings
http://oreilly.com/catalog/9780596157142

and this is the php server which is usable on all OS:
http://www.easyphp.org/

i hope that helps and if it does please mark this reply as answer sovled
okay enjoy
Jul 10 '11 #2
Thanks for your response Musofreak.
I have Apache and MAMP installed and running with no problems.
Irrespective of my PHP code, all I need to know is how to launch a file which is stored locally on the mac (in a folder that is not viewable by Apache server).

If I type the path from the code above into the address bar of either Safari or Firefox then it will open the file, but the link itself does not work.
Jul 10 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rob McLennan - ZETLAND | last post by:
Hi, I'm relatively clueless when it comes to correct ASP syntax. I'm testing out a search form for my company's website which is done in ASP. The results are displayed as per the code shown at the...
3
by: vivek9856 | last post by:
I am making a website and I need help promptly. Here is the code first off -----File Header.htm----- <HTML> <HEAD> <TITLE>Black Hawk Down</TITLE> </HEAD> <LINK REL=stylesheet...
5
by: dennis | last post by:
Hi, First of all, hi to you all. I'm working on a Delphi project wich is becoming near it's deadline. I have a very simple XSLT question wich i hope one of you folks can help me with? The...
0
by: Bennett F. Dill | last post by:
Thanks for reading. I'm having problems with cookies from asp to asp.net and back! It seems like I can set a cookie in asp.net fine, and alter it at will, as soon as asp touches it, asp.net...
0
by: Andreas Klemt | last post by:
Hello, please help. I don't now who to ask for this little problem. I have this HTML <a name=section1></a> <table> <a href="myurl1_1.thm">Link1_1</a> <a href="myurl1_2.thm">Link1_2</a> <a...
1
by: JumpingOffPlace | last post by:
Hi, I'm hoping that the wealth of knowledge here can stop me from spinning my wheels on this syntax error for hours. :) Below is the code, and the error I am recieving.... Code: <!DOCTYPE...
1
by: atombee | last post by:
Hi- this is the project that will not end! (sure you've all been there). I had originally purchased a php/css nav bar for the client, but it was buggy as hell, so I decided to do in css, in which I...
3
osward
by: osward | last post by:
Hi, everyone, I had managed to make use of the date link from a simple calendar script to my query table. When I click on the date's link or Prev and Next Month link, The table first row will be...
2
by: tonsi | last post by:
I have a page but it wont center the div. Can anyone take a look at it and help. When I try to center in the body using text-align: center; it doesn't work with the main container (called Table_01)....
0
by: jake hathaway | last post by:
hello , i am getting this error message "At least one of the From or Sender fields is required, and neither was found." i have added a contact form all the details are correct as far as i no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.