views:

391

answers:

8

I have a web server which can run PHP and Ruby.

I would like to know if there is a PHP program which can do version control of my code similar to SVN?
I know there are already open source project hosting sites which provide this service already but I would like it to be installed on my own host.
I don't have the access to this server to install additional packages either

+4  A: 

I'm not aware of any version-control system written in PHP. But even if there were one, I'd stay away from it. Version control isn't one of the things a scripting language is best used for.

Edit: I suggest installing Subversion on your local machine and develop all the code there, that way the SVN on your local computer can be used for version-control.

Edit 2: If you are collaborating with others and want them to have access to your repositry, I suggest getting subversion hosting somewhere for your project. There are some free hosts out there that support it, just google it and you should find some results.

Click Upvote
The only actions I can use is use FTP interpret PHP so how do I use another VCS that it isn't written in PHP?
toddoon
And how do I do when I am not on my computer, sorry, but I need a server open 24h/24h that's the interest. But thankx even.
toddoon
version control is only used when you make any changes to your code, no? So I don't understand what the server being online 24/7 has to do with it? What will you use the version control for?
Click Upvote
A: 

Why on earth would you care about the language of a tool that you use? That's like complaining that the builder of your house used a wooden ladder instead of a metal one.

Use Subversion or Git or anything you want, they'll all work fine.

nickf
But I can't installed package or compile on the server do you understand?
toddoon
Yeah, if you have shared hosting, you probably can't get anything running, other than a PHP App.
SkippyFire
right. that makes a bit more sense after the edit.
nickf
A: 

Just use an online service such as http://unfuddle.com/ or http://cvsdude.com/ They have free basic plans and even their paid plans are cheap enough to make it worth it.

nandos
I have said in my post 'I know there are already open source project hosting which provide this service already but I want it installed on my own host.' then I think I will uses WebSVN.
toddoon
A: 

If you need VCS somewhere that is not your computer and the production site is not under your control either, I would agree with nandos that you should use online service.

Then in order to put changes in production you could make PHP script on production site that accesses the online service and downloads the newest version via HTTP (http should be generally available with CVS, and SVN uses it natively) rather than using specific VCS protocols.

You will have limited options, but that's not what generally is expected to be controlled from production anyway.

Gnudiff
A: 

Ok I think nobody has really answered to my question. I said that I don't want any hosting facilities like http://en.wikipedia.org/wiki/Comparison_of_free_software_hosting_facilities. So I think I will use http://websvn.tigris.org/ Thanks.

Guillaume

toddoon
So what you really wanted was a web based svn repository browser?
schmilblick
Yes but WebSVN requires SVN, so it doesn't fix my problem. I think there is no issues to my question
toddoon
A: 

Why must the VCS be written in PHP? You could use SVN as the VCS and serve the files using apache. I can't think of a single benefit of wrestling with yet another version control system. What you could do is get a virtual machine appliance for source code control and issue management like vmTrac and either run it directly or pick it apart and figure out how it was put together

Conrad
But I can't install SVN or CVS because it is a shared hosting
toddoon
+1  A: 

http://sourceforge.net/projects/asvcs/ - Haven't tried this. But this sounds like what you are after.

StackKrish
I think you fix my problem! Great thanks!
toddoon
A: 

I know this is old, but for reference, since you have FTP access, you could use [Bazaar][1] over FTP, and use something like Redmine as a webviewer. Using FTP would be slower than installing the Bazaar smart server on the server (FTP is known as a "dumb" transport), but it would meet all your requirements.

Hope that helps someone

  • Scott