Re: ejecutar programa externo
| From: | Andres Ferrando | Date: | Thu, 09 May 2002 19:19:19 +0000 |
| Subject: | Re: ejecutar programa externo | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-22481@lists.php.net to get a copy of this message | ||
> > 1 <?php
> > 2 echo "$dir<br>";
> > 3 if (is_executable($dir)) echo "es ejecutable<br>";
> > 4 system($dir);
> > 5 ?>
> >
> > Me entrega como resultado:
> > ===================
> >
> > d:/temp/x.bat
> > es ejecutable
> >
> > Warning: Unable to fork [d:/temp/x.bat] in D:\sitioWEB\exe.php
no lo probé, pero que pasa si cambias las barras para ejecutarlo?
--
Andres Ferrando <anferr@mecon.gov.ar>