You are here: Re: exec « All PHP « IT news, forums, messages
Re: exec

Posted by Kim Andr� Aker� on 06/10/48 11:30

Ryan Garnier wrote:

> Hi!
>
> Anyone know why this doesn't work?
>
> $ruta = "cmd /c \"C:\Server\Apache2\htdocs\webvcr\config\bat\a.bat\"";
> exec($ruta);
>
>
> Thanks in advance!

You must escape all the "\" signs in the path as well, like this:

$ruta = "cmd /c
\"C:\\Server\\Apache2\\htdocs\\webvcr\\config\\bat\\a.bat\"";
exec($ruta);

--
Kim André Akerø
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация