SitePoint Sponsor

User Tag List

Results 1 to 22 of 22

Thread: php on a mac

  1. #1
    SitePoint Evangelist Fleeters's Avatar
    Join Date
    Jul 2003
    Location
    Dumpsville
    Posts
    406
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php on a mac

    i have used windows ever since i have had a computer. i will be switching to a mac soon. would like to know if i would have a hard time learning to use php/msql on an apache server. And if there is any differences in the coding?
    Aaron Smith
    smithaaronlee.net

  2. #2
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No not really, I use apache almost all the time, even on windows.

    Apache is a lot better, it provides much better options.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  3. #3
    SitePoint Zealot Saj's Avatar
    Join Date
    May 2003
    Location
    USA
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only difference is that if your hosting your site from the Mac, use \r instead of \n

  4. #4
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I always convert to \n.

    \r\n = Windows
    \n = *nix
    \r = Mac
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  5. #5
    SitePoint Enthusiast M ot U's Avatar
    Join Date
    Jul 2003
    Location
    Earth
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    uhhhh... one question.... why do you have a mac.... man... at least put linux on it or something!
    M ot U == Master of the Universe

    because i am...

  6. #6
    SitePoint Guru Majglow's Avatar
    Join Date
    Aug 1999
    Location
    B-Town
    Posts
    645
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the problem with Macs?

    OSX also is a unix OS which I prefer over Linux
    Ohai!

  7. #7
    public static void brain Gybbyl's Avatar
    Join Date
    Jun 2002
    Location
    Montana, USA
    Posts
    647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's BSD *based* -- Not very many people use Unix because it costs up around $1000+ for a liscense. The Darwin engine is BSD based, which is a Unix-like OS.
    Ryan

  8. #8
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M ot U
    uhhhh... one question.... why do you have a mac.... man... at least put linux on it or something!
    Why on earth would you use linux if you have OS X?
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  9. #9
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OSX is a nice OS.

    /me likes!
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  10. #10
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fleeters
    i have used windows ever since i have had a computer. i will be switching to a mac soon. would like to know if i would have a hard time learning to use php/msql on an apache server. And if there is any differences in the coding?
    Do you mean that you are going from ASP/IIS to PHP/Apache? Do you have any programming experience?

    Why will you be switching to Mac? Is this a work or school related switch? What do you hope to gain with the switch?

    I think that OSX is excellent so I'm not trying to force you to defend your switch, I'm just a little curious about your background and why you are at these cross-roads.
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  11. #11
    SitePoint Enthusiast M ot U's Avatar
    Join Date
    Jul 2003
    Location
    Earth
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its not osx its the idea of a mac-- they freak me out!
    M ot U == Master of the Universe

    because i am...

  12. #12
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M ot U
    Its not osx its the idea of a mac-- they freak me out!
    Why do they freak you out? Is it the bubbly-shaped florescent hardware? Apple seems to be moving away from that. :-)
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  13. #13
    SitePoint Enthusiast M ot U's Avatar
    Join Date
    Jul 2003
    Location
    Earth
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No its that and how they claim they are so fast but really, No, the standard best-selling imac has 255Mhz-- not cool , but maybe its just me!
    M ot U == Master of the Universe

    because i am...

  14. #14
    Sidewalking anode's Avatar
    Join Date
    Mar 2001
    Location
    Philadelphia, US
    Posts
    2,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M ot U
    No its that and how they claim they are so fast but really, No, the standard best-selling imac has 255Mhz-- not cool , but maybe its just me!


    Ignoring any PPC/x86 issues, Apple hasn't sold in the neighborhood of 255mhz machines in years. In any case, maybe you should go look at the NASA benchmarks for the G5 before making any more rash statements.
    TuitionFree a free library for the self-taught
    Anode Says... Blogging For Your Pleasure

  15. #15
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    Middle / East TN
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Speed isn't as important to most people nowadays with fast machines, as long as the job gets done. Yeah, it is important for games, video, 3D etc. But how fast of a comp do you need to run PHP, Apache and a text app?
    There are 10 kinds of people in this world,
    those who can read binary and those who can't.

  16. #16
    public static void brain Gybbyl's Avatar
    Join Date
    Jun 2002
    Location
    Montana, USA
    Posts
    647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've got it running on a P2/233 -- 5.0.0b1/2.0.47 and Vim6. I'm sure you can get lots lower than that, but it would be hell trying to actually get to the site that it's hosting.

    (Slackware 9.0 - Third only to FreeBSD and Gentoo =] )
    Ryan

  17. #17
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I recently installed php 5 and Apache 2 on a P1/100 with 16 MB ram running BSD 4.8. Ok for a little testing!
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  18. #18
    public static void brain Gybbyl's Avatar
    Join Date
    Jun 2002
    Location
    Montana, USA
    Posts
    647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *little* being the key word there, right?

    Like,
    PHP Code:
    // Kill server.
    for($i 0$i 10$i++)
    {
        echo 
    $i 2."\n";

    That wouldn't break anything, would it?
    Ryan

  19. #19
    SitePoint Addict
    Join Date
    Apr 2002
    Location
    Whitehorse, Yukon
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaron,

    First off, congrats on making the move to Mac OS X. It will be a choice you won't regret...

    OS X's built-in support for Apache is tremendous. If you just want to use the basic Apache web server, head to System Preferences > Web Sharing & then turn on the feature. Done. If you'd like to add PHP & MySQL support, here are two great resources available that rise above the rest:

    Marc Liyanage's OS X software. He also has packages available for PostgreSQL.

    Server Logistics has downloads for Jakarta Tomcat, Apache2, Perl, PostgreSQL, Cocoon, Ant and more. These are all very easy to install, and of course customizable.

    This is just the beginning of all the awesome dev stuff available for Mac's these days. A good place to start is Mac DevCenter which covers everything from Swing apps to UNIX.

    As you can tell, OS X is a full-featured operating system that combines the tech with sweet looks and brilliant functionality. You'll get some people who say "buy a cheap pc and install Linux" but if you want to do other work, such as graphics editing (Photoshop, Illustrator) print design (InDesign, Quark) or animation (Flash MX, LiveMotion), you can't beat this newest version of the Mac OS. And you can't forget iTunes, iPhoto and iMovie...Apple has some very cool free apps.

    By the way what computer model are you getting?

    have fun!

    geof

  20. #20
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't mind trying out a dual G5 2ghz / 8GB RAM server...

  21. #21
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman
    I wouldn't mind trying out a dual G5 2ghz / 8GB RAM server...
    Shut up, you are just encouraging my meaningless desire to buy!
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  22. #22
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M. Johansson
    Shut up, you are just encouraging my meaningless desire to buy!
    I suppose you could wait for the 3ghz models that they said they'd have before the end of this year. Does that help curb your purchasing desires?
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?


Bookmarks

Posting Permissions

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