Tema: Duda?
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2003, 09:25
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 5 meses
Puntos: 1
Duda?

Estoy haciendo lo siguiente: una página con un input que me permita ejecutar una aplicación de windows el código es este:

Código PHP:
<?php
echo "<html><head><title>Documento sin t&iacute;tulo</title></head>
<body>
<form action=\"accion.php\" method=\"post\" name=\"ejecutar\">
  <input name=\"nombre\" type=\"text\" id=\"nombre\">
  <input name=\"ejecuta\" type=\"submit\" id=\"ejecuta\" value=\"ejecutar\">
</form>
</body>
</html>"
;
?>
y la página accion.php es este
Código PHP:
<?php
 exec 
($nombre);
?>
y cuando lo ejecuto me da el siguiente error
Warning: exec() [function.exec]: Cannot execute a blank command in c:\appserv\www\accion.php on line 2

¿qué hago?

Salu2
__________________
Ing. Reynier Pérez Mira