Setting up a MAC to view PHP before uploading

Discussion in 'PHP' started by SandyN, Jun 3, 2006.

  1. #1
    Good Day,

    I'm a new Newbie to PHP. I am running a Mac OS X. I want to set up and run PHP within an HTML document. I also want to view this on my system before uploading to the Host.

    I understand that this is a fairly simple process, however, I must have a mental block the size of the Great Wall of China.

    I would greatly appreciate some guidance in the setup and running of PHP.

    Thanks,

    Lost in PHP
     
    SandyN, Jun 3, 2006 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    tflight, Jun 3, 2006 IP
  3. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Download MAMP, it comes with apache, mysql and php (it comes with phpmyadmin which allows you to create and manipulate databases). You also get a widget that allows you to turn the server on and off.
     
    danielbruzual, Jun 3, 2006 IP
  4. mykoleary

    mykoleary Peon

    Messages:
    64
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you're at all comfortable with building from source (or want to learn how for more experience), there is a GREAT step by step at:
    http://www.phpmac.com/articles.php?view=237

    They show how to get PHP and Apache running. MySQL is separate, but you didn't mention that, and if you want it also, the installere from their site is easy to get going on it's own. No need to clutter your system with an install it all product like MAMP.

    Granted, it is eaiser, but if you need to do things like compile in support for modules that they don't, or you just want more control over what modules are compiled in, you're better off on your own.

    Comes down to what you need and how comfortable you are.
     
    mykoleary, Jun 3, 2006 IP