calling cvs from php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yepen
    New Member
    • Apr 2010
    • 3

    calling cvs from php

    like this


    Code:
    <?php 
    
        $cvs = system('cvs update -d');
    
    
     ?>
    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?
    Last edited by Atli; Apr 22 '10, 11:09 AM. Reason: Added [code] tags.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    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?

    Comment

    • yepen
      New Member
      • Apr 2010
      • 3

      #3
      Originally posted by Markus
      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?
      :) 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 ............... ............... ..

      Comment

      Working...