So the time has come for you to create your first Zend Framework project on your shared hosting environment. You cd into the directory where you want to place your application via SSH and type in the following line:
./zend/bin/zf.sh create project zendapp
and instead of a nice, comforting message like
Creating project at /home/content/27/123456/html/zendapp
you get:
<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in <b>/home/content/27/7847927/html/zend/bin/zf.php</b> on line <b>38</b><br />
Well, it turns out that by default PHP4 is used by default on the command line. To fix this edit line 44 in /ZENDROOT/bin/zf.sh to look like:
“/usr/local/php5/bin/php” -d safe_mode=Off -f “$PHP_DIR/zf.php” — “$@”
You might need to tweak the path based on your host.
Have fun!