You are here: Re: batch file issue... « PHP Programming Language « IT news, forums, messages
Re: batch file issue...

Posted by Daniel Ennis on 09/26/33 12:00

Mandragon03@gmail.com wrote:
> On Jan 15, 10:25 am, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>> On Tue, 15 Jan 2008 18:22:52 +0100, <Mandrago...@gmail.com> wrote:
>>> I am using php 5.2.5 via a wamp server on my machine. I have created a
>>> web interface to a mysql database using php. The web interface has a
>>> link to a php file which calls a dos batch file like this:
>>> $Text = shell_exec("c:\mydatabase\convertdb.bat $Language");
>> If you use \\ or / instead of a single \ , does the problem persist?
>> --
>> Rik Wasmus
>
> using this did work!
>
> $Text = shell_exec("c:\\mydatabase\\convertdb.bat $Language");
>
> Thanks for the help!
>

It's because shell_exec("c:\mydatabase\convertdb.bat $Language"); is
actually: c:mydatabaseconvertdb.bat
--
Daniel Ennis
faNetworks.net - Quality Web Hosting and Ventrilo Services
System Administrator / Web Developer
PHP Developer for 6 years
daniel@fanetworks.net

 

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

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