Posted by Daniel Ennis on 10/03/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
[Back to original message]
|