Answer the question
In order to leave comments, you need to log in
Why can't I work with system() output?
Hello.
$sys = system("whois ".$_GET['ip'].' | sed \'s/$/\delimiter/\''); //оно успешно заменяет \n на delimiter, \n - не хотел эксплодиться дальше вообще, но и делимитер как оказалось тоже
print_r(explode('delimiter', $sys));
Array ( [0] => [1] => )
Answer the question
In order to leave comments, you need to log in
Got it! in a panic created a question.
exec() gives just the same line-by-line output in an array and does not output anything permanently
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question