note 106280 rejected from function.shell-exec by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 Oct 2011 15:58:47 +0000 |
| Subject: | note 106280 rejected from function.shell-exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184097@lists.php.net to get a copy of this message | ||
Note Submitter: yeestrada at uci dot cu
----
hi, I'm trying to read from the console a text inserted by the user in a php script throw bash,
like this :
#!/usr/bin/php -q
<?php
$var = shell_exec("read -p 'Ip de servidor remoto de bases de datos
(postgres):'");
print_r($var);
?>
But it don't shows me nothing at all, someone can help me??