Results 1 to 2 of 2
  1. #1

    Member Since
    Jan 13, 2007
    Mac Mini 2009 2G Ram OS 10.5.8, B&W G3 10.3.9 and 9.2.2, Pismo 10.3.9
    I want to activate PHP to read downloaded files
    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

  2. #2

    nabl's Avatar
    Member Since
    Dec 13, 2007
    United States of America
    2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork ‘09
    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 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).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Read data from csv file using php
    By Mbengi Bongi in forum Web Design and Hosting
    Replies: 5
    Last Post: 06-26-2011, 09:56 AM
  2. PHP Files
    By ben3001 in forum macOS - Apps and Games
    Replies: 3
    Last Post: 01-02-2008, 05:39 AM
  3. .php files?? how can i see them???
    By rypod81 in forum Switcher Hangout
    Replies: 5
    Last Post: 07-08-2005, 02:31 PM
  4. .php files, how can i see them??
    By rypod81 in forum Apple Notebooks
    Replies: 3
    Last Post: 07-08-2005, 02:25 PM
  5. controll/read iTunes via. PHP
    By fabio in forum macOS - Development and Darwin
    Replies: 5
    Last Post: 07-16-2004, 03:48 PM

Posting Permissions

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