A
A
alex stephen2015-02-26 14:39:16
PHP
alex stephen, 2015-02-26 14:39:16

PHP: how to find output line in command line?

Hello.
I run the php script from the console, and some empty line appears there. I can't find it manually, so I want to track it down.
Is it possible to make output like: "filepath: output" in php command line?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Kubintsev, 2015-02-26
@berezuev

Somewhere in your php files you have a closing tag "?>" followed by a newline.
Get rid of the "?>" at the end of the files.

S
ShamblerR, 2015-02-26
@ShamblerR

test.php > exit.log
are you talking about this?

M
Maxim Kudryavtsev, 2015-02-26
@kumaxim

For Win7 it works like this
All output will be saved in the file out.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question