system() function in PHP prints variable 2 times.
Posted
by maxorq
on Stack Overflow
See other posts from Stack Overflow
or by maxorq
Published on 2010-04-02T17:25:24Z
Indexed on
2010/04/02
17:33 UTC
Read the original article
Hit count: 230
Stupid question, this code:
<?php
$variable = system("cat /home/maxor/test.txt");
echo $variable;
?>
with file test.txt:
blah
prints:
blah
blah
What can I do with system() function to not print nothing so I get 1 "blah"???
© Stack Overflow or respective owner