PHP Script for GIt Pull

by Niks24
3 replies
Hello Every One,

I have made a PHP Script that pulls the code from GIT Hub repository, But when I execute that particular code it shows error, But when we run the same code through Commands it works all fine.

Following is the error we are getting while executing the PHP Script:

cannot connect to authentication agent.

Can some one please help me in this.

Thanks
Nishant
#git #php #pull #script
  • Profile picture of the author Artur Golisz
    Do you checked if apache has permission to run git?
    Do you use full path to git?

    Mayby that helps you:
    http://stackoverflow.com/questions/1...tication-agent
    Signature
    Need help with programming (WordPress, PHP, jQuery and more) ? Just send me PM.
    {{ DiscussionBoard.errors[9192149].message }}
    • Profile picture of the author Niks24
      Hi Artur,

      Thanks very much for the help.

      Yes we have seen that but still its not working.

      we are getting the agent ID but still its saying that could open connection to your authentication agent.

      Do you have any idea on this ?
      Signature
      Served Over 100 customers and there needs with Web and Mobile Apps Development, if you are looking for one please connect with me with good turnaround.
      {{ DiscussionBoard.errors[9197197].message }}
  • Profile picture of the author jigney
    Plz check your code with this document...
    https://developer.github.com/v3/oaut...-authorization
    {{ DiscussionBoard.errors[9226089].message }}

Trending Topics