#12238 [Com]: Double printing with echo and print
| From: | best-adult1044 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:10:53 +0000 |
| Subject: | #12238 [Com]: Double printing with echo and print | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63120@lists.php.net to get a copy of this message | ||
ID: 12238
Comment by: best-adult1044 at hotmail dot com
Reported By: mahk at home dot com
Status: Bogus
Bug Type: Strings related
PHP Version: 4.0.6
New Comment:
<a href=http://best-adult-girl-hoo.da.ru>best
adult</a>
Previous Comments:
------------------------------------------------------------------------
[2001-07-18 18:45:18] cynic@php.net
RTFM (Reading The Fine Manual) never killed anyone. You should try
that. :)
"System() is just like the C version of the function in that it
executes the given command and outputs the result. [...] Returns the
last line of the command output on success, and false on failure."
------------------------------------------------------------------------
[2001-07-18 18:39:04] mahk at home dot com
The following html/php script gives a duplicate of the last line.
<HTML>
<BODY><CENTER><B>
<P>System name:
<?php echo( system("hostname") ); ?>
<P></B></CENTER> </BODY>
</HTML>
returns the following html output.
<HTML>
<BODY><CENTER><B>
<P>System name:
kelsey
kelsey<P></B></CENTER> </BODY>
</HTML>
I've used the standard compile:
'./configure' '--with-mysql' '--with-apxs'
System: Linux kelsey 2.2.19-6.2.1 #1 Mon Apr 9 21:59:11 EDT 2001 i486
unknown
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12238&edit=1