Running PHP files. Basic help

Discussion in 'Mac Programming' started by JBot, Feb 7, 2007.

  1. JBot macrumors 6502

    Jan 9, 2006
    I am very new to the PHP language, and am trying to start some tutorials.
    I have MAMP installed, and running, i am not sure if i need that? Its a php server, which i believed was necessary.
    I am trying to run this example,
    I have in unzipped, and i believe, i have followed these instructions correctly:

    1) Download PHPDugg from the kubelabs site
    2) Extract the zip file onto your computer
    3) Upload all of the files that were in the zip file via ftp to your web host
    4) Set the chmod permisions on the includes/config.php file to 0777
    5) Open the url where you uploaded the files in your web browser, for example
    6) You will now be presented with the installation wizard

    Except i zipped it to my local hdd. Than i ran in the terminal 'sudo chmod 0777 config.php,' but when i access file:///........../PHPDugg/ it just shows the plain list of files available in that directoy. what am i doing wrong?
  2. iMeowbot macrumors G3


    Aug 30, 2003
    Take the phpdugg.0.7 folder that you got from the zip file and drag it to the htdocs folder inside your Applications/MAMP folder. Then, in your web browser, go to localhost:8888/PHPDugg.0.7/install/ and you'll get the install thingy.

Share This Page