SVN and PHP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

SVN and PHP

Post by LonelyProgrammer »

Hi,

I am currently using the services of a SVN for source control (http://www.assembla.com). I am just wondering how on earth can I always view the most recent revision of my PHP scripts while using SVN?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: SVN and PHP

Post by RobertGonzalez »

Generally as you develop your code you check it in to the repository. This way you are always working the most bleeding edge code while the most revision is the stuff that is the last know code to work.

Of course this is not the full breadth of using code control. Get into tagging and branches and things get a lot more interesting.
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Re: SVN and PHP

Post by LonelyProgrammer »

Yes, the code in the repo is the most recent, so for testing, I would like to access it from the web browser and play with it. Is there a way to set this up?
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Re: SVN and PHP

Post by LonelyProgrammer »

Er, *bump*

I think I didn't phrase my question correctly. The SVN repo always hold the most recent copy of the code. So how do I get the URL to it to view for testing of the forms and pages and etc. (that is, viewing it as a normal web page).
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: SVN and PHP

Post by RobertGonzalez »

You typically don't view the code that is in the SVN repo as application code. Generally you checkout the code to the location that you are testing the code.

If you are developing the code locally, development should be taking place on your local server then checked in to the repo. Once the code works as expected locally, you check it out onto the web server where the files will ultimately live and run it there.
Post Reply