I figured out how to set it up for my local user account. There's a way to set it up so that all users get php-mode, but I haven't played around with that.
1. mkdir ~/.php-mode
2. download the php-mode.el from
http://sourceforge.net/projects/php-mode/ into your ~/.php-mode/ directory.
3. Run emacs and type "M-0 M-x byte-recompile-directory RET ~/.php-mode/ RET". This will byte compile php-mode.el into php-mode.ecl.
4. Edit your ~/.emacs file by adding these two lines:
Code:
(setq load-path (cons "~/.php-mode/" load-path))
(autoload 'php-mode "php-mode" "php editing mode." t)
5. Close emacs and run it again to re-read your .emacs file.
6. Open a PHP file and type "M-x php-mode".
I know, this isn't obvious. I had a tough time finding instructions on how to do this. There are ways of automatically putting Emacs into php-mode when you open a .php file, but I haven't figured that out yet.
Hope that helps!