<VirtualHost addr[:port] [addr[:port]] ...> ... </VirtualHost>
<VirtualHost 192.168.1.1:80>
ServerAdmin admin@8080
ServerName 192.168.1.1
DocumentRoot /var/www
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/8080">
DirectoryIndex 7.php
SetHandler "proxy:fcgi://127.0.0.1:8080
AddHandler php74-fcgi .php
Action php74-fcgi /cgi-bin/php74.fcgi
</Directory>
<Directory>
DirectoryIndex 8.php
SetHandler "proxy:fcgi://127.0.0.1:8082
AddHandler php82-fcgi .php
Action php82-fcgi /cgi-bin/php82.fcgi
</Directory>
ErrorLog /var/log/httpd/8080.log
CustomLog /var/log/httpd/8080.log combined
</VirtualHost>
{
"status": "error"
"error": {
"form": {
"email": "Пользователь с таким адресом электронной почты уже зарегистрирован",
"password": "Слишком короткий пароль. Минимальная длина 8 символов."
}
}
}
{
"status": "ok"
"location": "/email-verification"
}
FROM " . DB_PREFIX . "product_to_category ptc LEFT JOIN . DB_PREFIX . "category_description"
FROM oc_product_to_category ptcoc_category_description
LEFT JOIN oc_
?.two div[id]~div:nth-of-type(2)
читается как:class API
{
public function getProduct(int $productId): Product
{
$product = $this->request(...); // Получение данных из API
return Product::from($product)
{
}
class Product
{
private int $id;
private string $title;
// прочие свойства
public function getId(): int
{
return $this->id;
}
public function getTitle(): int
{
return $this->title;
}
// прочие геттеры
// сеттеры, если нужны
public static function from(object $source): self
{
$product = new static();
$product->id = $source->id;
$product->title = $source->title;
// заполнение свойств
return $product;
}
}
...
$api = new API($login, $password);
$product = $api->getProduct(325);
$ man killall
...
killall sends a signal to all processes running any of the specified commands. If no signal
name is specified, SIGTERM is sent.
...
-w, --wait
Wait for all killed processes to die. killall checks once per second if any
of the killed processes still exist and only returns if none are left. Note
that killall may wait forever if the signal was ignored, had no effect, or if
the process stays in zombie state.