0

My question is simple!
I could see how a github file on text in mode?
I just need to compare the contained of github file.

Would you know how to do with php?

2
  • While your question is indeed simple, I fail to understand it. Do you mean you want to get the raw contents of a file in github from a php script ? Commented Feb 14, 2013 at 0:44
  • @SirDarius yes! I am looking for a way to recover a file contained github, not by any means import (get file content, curl ....) I just want to know how to view a file in text (from github) Commented Feb 14, 2013 at 0:47

1 Answer 1

1

Github has pretty straightforward urls when it comes to raw files. See this example:

https://raw.github.com/libgit2/libgit2/development/CMakeLists.txt

So as long as you know the path to a file in a github project, you can use the special raw.github.com hostname, and read the contents from PHP.

Sign up to request clarification or add additional context in comments.

1 Comment

Oooh! Two hours that I was looking for! big thank you @SirDarius =)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.