PHP Web Server
Some common ones:
| if (false === $pos = strrpos(get_class($this->controller[0]), '\\__CG__\\')) { | |
| $class = $this->controller[0]; | |
| } else { | |
| $class = substr(get_class($this->controller[0]), $pos + 8); | |
| } | |
| $this->params = $this->queryParamReader->read(new \ReflectionClass($class), $this->controller[1]); |
| var completeString = _('I am {role} and {nationality}', 'domain', { | |
| role: 'monkey', | |
| nationality: 'norwegian' | |
| }); | |
| var featureList = '<ul>' + _('#info', 'domain').join('</li><li>') + '</li>'; | |
| function _(string, domain, values) { | |
| var processedValues = {}; | |
| for (var key in values) { |
Make sure server is updated
yum update
Install prerequisites
yum install gcc automake autoconf libtool make patch java httpd ruby ruby-devel readline-devel zlib-devel
Add jenkins repo and install
| <?php | |
| /** | |
| * Use PHPDoc notation when creating documentation for classes and functions | |
| * Code indentation is TAB, do not use spaces! | |
| * | |
| * @param ObjectClassName $object This object does something | |
| * @param int $options This integer can count by one | |
| * @return echos json This function returns something | |
| */ |