PHP - Apple

Discussion in 'PHP' started by Visual Realm, Sep 10, 2007.

  1. #1
    Where is the best place to learn php if you are an apple user. Everyone always references to all the big ones but is there a place that breaks it down for macs? Which brings me to my next question. Should i use php if i am an apple user?
     
    Visual Realm, Sep 10, 2007 IP
  2. alfredn

    alfredn Peon

    Messages:
    1,198
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ehhh... I have to ask, what does PHP have to do with your OS? nothing man.. All you need is a txt editor on an IDE.
     
    alfredn, Sep 10, 2007 IP
  3. amanamission

    amanamission Notable Member

    Messages:
    1,936
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Are you talking about an Apple server?
     
    amanamission, Sep 10, 2007 IP
  4. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PHP is no different on the mac than on linux/bsd.

    I run php (latest 5.2.4) at home on a mac. Configured to either load as a module or run via fcgi (the latter with either lighttpd or apache2). I've installed PECL extensions (rar, apc), PDO drivers for postgress, mysql, sqlite, and much more.

    It all runs the same as on any linux/bsd server...so I use the same resources as everyone else -- php.net, hotscripts.com, sourceforge.net, phpclasses.org, wrox/o'reilly/sams books etc.

    Now, if you're asking about how to set this all up...well...yeah, that's another story altogether :)
     
    sea otter, Sep 10, 2007 IP
  5. Visual Realm

    Visual Realm Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah basically i am extremely new to coding and it seems like all the things i try to download only have a .exe file to install the program. I have done very simple asp and mysql pages but its just cause i dissected some one elses code. I am very strong at design but need to get a better grasp at coding. I need to be able to do CMS and password protected pages.
     
    Visual Realm, Sep 11, 2007 IP
  6. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Are you sure you're talking about php here :confused: I've never, ever downloaded PHP code wrapped in an exe. And I certainly wouldn't trust it either. Where are you getting your code???
    ASP is a microsoft-specific technology. It's no surprise that they would package sample code in an exe file, as they assume you're running on a Windows machine. Stupid, I know, but such is the way in Microsoft-land. If you're trying to learn PHP, there's absolutely no reason to look at ASP/.NET code. You'll get nothing from it.

    The vast majority of the popular CMS systems are written in PHP. Go to http://opensourcecms.com/ where you can play with the user/admin side of just about every CMS in existence. When you find one you like, you can download the code.
     
    sea otter, Sep 11, 2007 IP
  7. Visual Realm

    Visual Realm Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sea Otter thanks for your post. As you can see i am extremely new to coding. I cant even explain what i am trying to do. Basically i dont understand the concept of running php on my machine. Like you said before you use php 5.2.4 on your home computer. That is the file that i can only get a exe file.
     
    Visual Realm, Sep 11, 2007 IP
  8. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Ah, ok. You're trying to install a windows-compiled version of php on a mac, which is why it won't work.

    Marc Liyanage at Entropy has created a bunch of-click-and-go packages for the mac: php, mysql, postgres, etc. : http://www.entropy.ch/software/macosx/welcome.html

    You can download the DMG files and do one-click installs without having to worry about compiling PHP from scratch.

    Just make sure that after you install PHP, you turn on Apache via System Preferences -> Sharing -> Personal Web Sharing
     
    sea otter, Sep 11, 2007 IP