note 71421 rejected from function.system by nlopess
| From: | nlopess@php.net | Date: | Tue, 28 Nov 2006 21:52:11 +0000 |
| Subject: | note 71421 rejected from function.system by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120141@lists.php.net to get a copy of this message | ||
Note Submitter: supergork at gmail dot com
----
Mi code is:
<?php
echo '<pre>';
// Muestra el resultado completo del comando "cat prueba.txt", y devuelve la
// ultima linea de la salida en $ultima_linea. Almacena el valor de
// retorno del comando en $retval.
$ultima_linea = system('cat prueba.txt', $retval);
// Imprimir informacion adicional
echo '
</pre>
<hr />Ultima linea de la salida: ' . $ultima_linea . '
<hr />Valor de retorno: ' . $retval;
?>
The problem consists thar de $retval return me 1 and don't execute nothing. I checked the
permissions and all are be right. I don't know why doesn't works.