You are here: Re: php + cvs = temwork ? « PHP Programming Language « IT news, forums, messages
Re: php + cvs = temwork ?

Posted by Dikkie Dik on 03/11/06 19:06

There is no reason why you should not be able to use CVS with PHP
development. I worked in a company where they did it with success. There
are a few things to consider when combining PHP with CVS:

It is best to put all the local settings (error handling mail address,
database login data, etc.) in a separate file and put it in .cvsignore .
This way, each developer can use their own development (localhost)
database or a common one, whatever they choose.

One of the problems with CVS is that it will happily keep you in the
dark while you believe your source is under control. In other words: you
simply don't have a team unless you specifically ask for it. To keep the
source updated, you could run a batch script at night that runs an
update of all your projects. Redirect the output to a text file, so you
can see what happened in the morning.

One other, more severe problem of CVS is the fact that sharing sources
between projects is quite difficult. If you define a nice,
project-independent class in one project and you want to use it in
another project, there is no way to keep the two copies linked. So CVS
will make your projects diverge. I heard that subversion supports such
kind of links, but I never worked with that system. To overcome this,
you could decide to start some central "crossover" project and refer to
that in other projects.

I guess (not certain) CVS does not understand file links (unix-style),
and anyway, if your developers are working with Windows, it will
certainly not work, as Windows does not understand them either. There is
some link utility on the net somewhere for windows, but it still good to
put the links themselves in .cvsignore . Links are sometimes quite
useful to have the same directories appear in both http:// and https://
domains (images, for example).

One final advice: don't branch if you don't need to.

Best regards

Carramba wrote:
> hello,
>
> Iam not shoure if it should by posted here or in cvs newsgroup.. enyway
> hope you can answer some questions...
>
> is it posible to use cvs for php application developmen? I mean can u
> run and debugg files in repository?.. or I should create some sys that
> uppdates document root with lates files?
>
> I would apprishiet eny other ideas about how to approth php app
> development in team,
>
> ________________________
> Thanx in advance
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация