Re: Running PHP CodeSniffer

From: Date: Thu, 23 Jul 2015 20:04:24 +0000
Subject: Re: Running PHP CodeSniffer
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-32041@lists.php.net to get a copy of this message
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 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#32041) next »