By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,251 Members | 1,656 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,251 IT Pros & Developers. It's quick & easy.

calling cvs from php

P: 3
like this

Expand|Select|Wrap|Line Numbers
  1. <?php 
  3.     $cvs = system('cvs update -d');
  6.  ?>
it doesn't work , i want to run PHP to execute cvs

who can give me a solution ,? i'll be very appreciate that

any help?
Apr 22 '10 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 6,050
First of all, why are you using CVS? This is 2010 ;)

Secondly, what do you mean by 'does not work'? What happens? What doesn't happen? Do you receive any errors? What output do you get? What does var_dump($cvs); show?
Apr 22 '10 #2

P: 3
:) firstly ,thanks for your help!
1 there are no errros , and $cvs shows empty! ,if i use system('cvs udpate -d',$return), $returns echos 1, accord to the php manual Returns the last line of the command output on success, and FALSE on failure
cvs command dosent be executed in php,why? other command like dir ls etc can run successful ................................
Apr 23 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.