PHP and MySQL running on Macs other than Ubuntu / Windows

I have never used a Mac to develop PHP applications. I am more a Ubuntu person. So I would like to know if installing and running AMP apps on Mac is different.

For example, if I had to compare Ubuntu with Windows, here are some differences.

  • You have to enclose php code inside <?php ?>all the time for Windows, but on Ubuntu you can use<? ?>

  • On Windows, when you name the database table as tblMyTable, it changes to tblmytable (all lowercase letters).

  • Crones are specified differently on Windows and Ubuntu.

  • File names in Ubuntu are case sensitive, but not in Windows.

So, I want to know if the Ubuntu and Mac AMP applications are different in terms of installation / operation.

+3
source share
2 answers

Apache and PHP are the same, but different operating systems (or Linux distributions) may come with different php.ini files. I would advise against using short tags ( <?or <?=) if you plan to switch platforms or hosts, as this is a custom parameter.

MySQL is a completely different story. It stores data differently on Windows, OS X, and Linux. Table names are case sensitive on Linux, but not on Windows and OS X. This is actually a bit more complicated. See http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html for all the details.

OSX , , . OS X . Linux, , .

+2
  • ​​php.ini. short_open_tag = On "<?" "<? php" PHP, . . "<? = $Var? > "

  • MySQL (+1):

  • OS X cron, Linux. crontab crontab -l crontab -e

  • , , .

+1

All Articles