I am newbie on PHP. Here is my situation. I write my code in vim and put it under /var/www/ then I can use
localhost/*.php
Use these two lines to debug (this will enable to find the errors on the line numbers):
ini_set('display_errors', 'On'); error_reporting(E_ALL | E_STRICT);