Result: Cli

Search by: Cli (3)

$_SERVER[DOCUMENT_ROOT] in CLI or Cron

When running the script from the console, there is no DOCUMENT_ROOT in $_SERVER. Let's try to get around this in our own ways, catch the file directory.

4418 0

Worker Gearman from Cli Console to Php

The Gearman worker needs to be constantly running in a loop in order to function properly. From the server side, this can be done with a single request through the Cli console. Consider the robot on a simple example.

1469 0