I’ve never used a Mac for developing PHP Apps. I’m more of an Ubuntu person. So I’d like to know if installing & running AMP applications on a Mac is different.
For example, if I were to compare Ubuntu with Windows, here are some differences.
-
You have to enclose php code within
<?php ?>all the time for Windows, but on Ubuntu you can use<? ?> -
On Windows, when you name a database table as tblMyTable, it changes into tblmytable (all lowercase).
-
Crons are differently specified on Windows and Ubuntu.
-
File names on Ubuntu are case-sensitive but not on Windows.
So like this, I want to know if Ubuntu and the Mac AMP applications are different in terms of installation/operation.
Apache and PHP are the same but different operating systems (or distributions of Linux) may come with different php.ini files. I would advise against using short tags (
<?or<?=) if you’re planning on switching platforms or hosts as it’s a configurable option.MySQL is a different story. It stored data differently on Windows, OS X and Linux. The table names are case sensitive on Linux but not on Windows and OS X. It’s actually a little more complicated than that. Have a look at http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html for all the details.
OSX can be case sensitive or not, depending on how the partition was formatted. Most OS X installation are case-insensitive. Linux distributions are definitely case sensitive.