For example, development is carried out under Windows, and the finished project is rotated on a Linux server. Here are a couple of potentially problematic issues I encountered:
- When developing under the form of PHP loyally refers to the omitted quotes in the indication of the array key:
$foo[bar]
. But Linux swears and refuses to work without quotes:$foo['bar']
. Therefore it is better not to drop quotes. - In PHP 5.3.0, the magic constant
__DIR__
, but it is likely that an older version of PHP is still running on the hosting, so it is better to usedirname(__FILE__)
.
Share your findings?