phar

How to use PHP Composer on HostGator

断了今生、忘了曾经 提交于 2019-11-28 16:18:19
问题 I recently decided to start a project in Zend Framework 2 and was having trouble getting it to run on a HostGator shared server. By default, HostGator's shared servers run in PHP 5.2.2 and if you upload the ZF2 Skeleton Application, it will not run out of the box. Also, if you happen to have SSH access to your HG Shared account (You usually have to request it), you won't be able to run .PHAR files because the CLI version of PHP is also 5.2.2. Luckily, I got it to work... see below. 回答1: First