Re: [PEAR] Running PHP CodeSniffer

[email protected] (Christian Weiske) Thu, 23 Jul 2015 22:04:24 +0200
Newsgroups php.pear.general
Message-ID <20150723220424.202be670@bogo>
Hello Paul,


> I am having trouble getting PHP CodeSniffer to run.  I have installed
> version 2.3.3 using the PEAR package installer in cPanel. I have
> logged in via SSH using PuTTY and have been trying to run $ phpcs
> commands to no avail within the interactive shell (php -a). I am new
> to this sort of thing so any advice would be greatly appreciated.

phpcs is a normal shell command; no need to get into "php -a".

If PEAR's bin directory is not in your $PATH environment variable,
simply running "phpcs" will not work. You will have to find out the
full path with

$ pear config-get php_bin

The phpcs executable will be in this directory.

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlWxSMgACgkQFMhaCCTq+CMO3ACaArzVn1wkrH8EMc3BGpXjx1gF
ftMAn3N91QDXjqGl7esHzL5ZBQrzLUme
=rF5g
-----END PGP SIGNATURE-----