Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2004, 09:18 AM
Registered User
 
Join Date: Aug 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default EXEC function

I have the folllowing PHP code on Windows:

 $program = "cvs checkout";
 $array_cvsget = array();
 $cvsretvalue = 0;
 exec($program, $array_cvsget, $cvsretvalue);

after execution $array_cvsget contains,
program = cvs checkout

but from command prompt in Windows, it is supposed to be:
 cvs [checkout aborted]: must specify at least one module or directory

Anybody know why? Or has anybody got something like:
$program = "cvs checkout -P -r branch Common";
to work ??.

Thanks







Similar Threads
Thread Thread Starter Forum Replies Last Post
Get value with EXEC Javierera SQL Server 2005 6 November 3rd, 2008 04:28 PM
Error handle - stop exec. of parent function crisan Access 2 September 27th, 2005 01:55 AM
Copy a image file using exec function foka PHP How-To 1 May 29th, 2005 04:46 PM
EXEC function not returning values aingalsbe PHP How-To 0 June 1st, 2004 10:03 AM
EXEC problem. pankaj_daga SQL Server 2000 8 October 4th, 2003 05:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.