Re: Re: Run batch files using php
| From: | Harpreet K. Singh | Date: | Thu, 29 Apr 2004 14:11:29 +0000 |
| Subject: | Re: Re: Run batch files using php | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23596@lists.php.net to get a copy of this message | ||
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@indiana.edu>
To: <php-windows@lists.php.net>
Sent: Thursday, April 29, 2004 12:24 AM
Subject: [PHP-WIN] 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
>