Re: Re: Run batch files using php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I run the batch file double clicking on it and it copies the files from one
server to the other.

I run the copy command in dos prompt it runs perfect

I try running the same copy command or running the same batch file using
exec in my php page and i get access is denied.

What do i need to do to copy from one server to another. I have the drives
mapped on my machine

please help. I am stuck on it for 3 days now.

Thanks
----- Original Message ----- 
From: "Jason Barnett" <jasbarne@xxxxxxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Thursday, April 29, 2004 12:24 AM
Subject:  Re: Run batch files using php


> Harpreet wrote:
> > I wrote a batch file using php . Can I run this batch file using php
with
> > the system or some other command.
> >
> > Please help
>
> Sure, you can call php from the command line and pass arguments to it
> (like the name of a php script to run).  Or did you mean run a batch
> file from inside a php script?  To do that, you need to use exec()
>
> http://www.php.net/function.exec
>
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux