Questions tagged as 'php-cli'

1
answer

Get getopt ignore first argument

I'm creating a PHP CLI, and wanted to run something like this php console.php comando -a foo -b bar -d But with the function getopt I can not pass comando if not the buga function and I do not receive any of the other argume...
asked by 30.08.2017 / 22:12
1
answer

PHP does not find files when executed in terminal

I run the x file normally, in it I add through require_once several other files, and through the browser I execute it normally. But when I run the file through the terminal it does not find the same files, it does not require_on...
asked by 11.11.2015 / 01:03
1
answer

How to run a php socket

This script below is a php socket for receiving data from a tk102 vehicle tracker. The problem is that I think it has to be run in a specific folder on the server and I do not know how to do that, and have that CLI script question that I do not...
asked by 08.04.2016 / 16:41
1
answer

Printing and Vector Allocation in php cli

I'm doing a program in PHP that simulates the allocation of programs in a Memory. The problem is that it does not allocate the data in the vector. It prints the vector as if it were the same after its initialization <?php // echo phpversio...
asked by 11.06.2016 / 04:24