note 71421 added to function.system
| From: | supergork at gmail dot com | Date: | Tue, 28 Nov 2006 10:53:47 +0000 |
| Subject: | note 71421 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120121@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 200.59.45.3
Probable Submitter: 80.33.31.51
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- https://master.php.net/note/edit/71421
Del: integrated -- https://master.php.net/note/delete/71421/integrated
Del: useless -- https://master.php.net/note/delete/71421/useless
Del: bad code -- https://master.php.net/note/delete/71421/bad+code
Del: spam -- https://master.php.net/note/delete/71421/spam
Del: non-english -- https://master.php.net/note/delete/71421/non-english
Del: in docs -- https://master.php.net/note/delete/71421/in+docs
Del: other reasons-- https://master.php.net/note/delete/71421
Reject -- https://master.php.net/note/reject/71421
Search -- https://master.php.net/manage/user-notes.php