K
K
Kirill Zhilyaev2016-11-29 22:19:12
PHP
Kirill Zhilyaev, 2016-11-29 22:19:12

How to pass argument from file to application?

There is a simple command

C:\Users\LOL\Desktop\Новая папка (8)>"C:\Users\LOL\Desktop\Новая папка (8)\test.php" -t 500
array(1) {
  [0]=>
  string(50) "C:\Users\LOL\Desktop\═ютр  яряър (8)\test.php"
}

The output shows that one startup parameter came in. But if you do it like this:
C:\Users\LOL\Desktop\Новая папка (8)>D:\WebServers\usr\local\php5\php.exe "C:\Us
ers\LOL\Desktop\Новая папка (8)\test.php" -t 500
array(3) {
  [0]=>
  string(50) "C:\Users\LOL\Desktop\═ютр  яряър (8)\test.php"
  [1]=>
  string(2) "-t"
  [2]=>
  string(3) "500"
}

That's all in order

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dark Hole, 2016-11-29
@abyrkov

Just don't use Cyrillic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question