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
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

I want to activate PHP to read downloaded files


Post Reply New Thread Subscribe

 
Thread Tools
fishmaven

 
Member Since: Jan 13, 2007
Location: Houston,Tx
Posts: 16
fishmaven is on a distinguished road
Mac Specs: Mac Mini 2009 2G Ram OS 10.5.8, B&W G3 10.3.9 and 9.2.2, Pismo 10.3.9

fishmaven is offline
I've installed MAMP. I've put the MAMP control widget into the widget library but I don't understand the instructions about "put HTML and PHP files in the htdocs folder". I'm not working with MY files. I'm trying to get some intelligence from the files I've downloaded. So… I want to READ the files. How do I accomplish that? Wonder why Apple would install this stuff and then make it so hard to use or even get to? Thanks for reading this. Dan
QUOTE Thanks
nabl

 
nabl's Avatar
 
Member Since: Dec 13, 2007
Location: United States of America
Posts: 256
nabl has a spectacular aura about
Mac Specs: 2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork ‘09

nabl is offline
When you say that you want to "read" the PHP files, do you mean that you want to read their source code (which you can do with TextEdit) or that you want to view them as they would be served by a Web server?

If it's the latter, you basically need to do three things. First, you need to enable PHP. Next you have to enable Apache, and finally you simply place the PHP files in the right spot and view them in your Web browser.

Here are some very in-depth instructions that cover each step in detail. One thing that I didn't see him mention is that you can also use a command-line text editor like vim or nano if you're comfortable with it instead of downloading a new application (just be sure to run it as root so that you can save). Also, he mentions putting the documents in Macintosh HD:Library:WebServer:Documents, but you can put them in your personal Sites folder as well. Then to access them from your browser, go to http://127.0.0.1/~username and you'll see a list of files in your Sites folder (if you get an error, make sure you've enabled Web Sharing in System Preferences).
QUOTE Thanks

Post Reply New Thread Subscribe


« Mail signatures not showing jpegs | Problems w/.doc on OS X »
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
Can't automatically open downloaded files using Safari computerxperts OS X - Apps and Games 3 02-16-2009 08:16 PM
How can I read files in a Linux drive yinglcs OS X - Operating System 5 01-31-2009 11:03 PM
Mac HDD in a external enclosure doesn't give permission to read some files benio Other Hardware and Peripherals 2 01-30-2009 10:02 AM
Downloaded files vanish. vgjfelix Switcher Hangout 3 09-10-2007 12:23 PM
Seagate 7200.10 incompatible? Detailed benchmarks! otheronenorehto Apple Desktops 5 01-15-2007 04:38 AM

All times are GMT -4. The time now is 01:13 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?