Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 150171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:14:52+00:00 2026-05-11T09:14:52+00:00

I’m having a slight issue wrapping my head around on how to set up

  • 0

I’m having a slight issue wrapping my head around on how to set up Subversion when working with php files. I store all my files at c:\www[nameOfProject]\htdocs and I setup virtual hosts for each project. (c:\www\project1\htdocs\index.php maps to http://localhost/project1/index.php).

How do you guys handle using SVN? Lets say I have c:\svnrepos\ which is where I store each repo for each project. Now ideally I would want to check out from the repo at c:\svnrepos\project1 to c:\www\project1 correct? But the docs say to do it to an empty directory, but how can I preview my code then without moving it somewhere else first?

Thanks for the help guys!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:14:53+00:00Added an answer on May 11, 2026 at 9:14 am

    One way of doing this effectively is to do your development by checking out the trunk into, say, c:\www\preview\project1 and testing it with an appropriate virtual host or different url there.

    As you get it working, you will be checking in various versions of the trunk. When it’s ripe to move over to your ‘real’ host/url, then you

    1. Create a branch or a tag to reflect this (like branches/rel.1), and
    2. Check out (svn co) the branch into c:\www\project1\htdocs

    After that you can do urgent bug fixes under branches/rel.1, and merge them back into ongoing work under trunk. When another release is ready, you

    1. Make another branch (say, branches/rel.2), and
    2. Switch (svn switch) c:\www\project1\htdocs to the new branch

    This way, you can keep your development from interfering with the real service, and also switch back to an earlier release if you have problems.

    For a more complicated, but urgent, bugfix, you can

    1. Check in your development as trunk
    2. Switch c:\www\preview\project1 to the current release branch
    3. Fix and test the bug in c:\www\preview\project1, committing as necessary
    4. When satisfied, do the final checkin, then svn update on c:\www\project1\htdocs
    5. Switch c:\www\preview\project1 back to trunk, and carry on developing
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 158k
  • Answers 158k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can either cast it (which could throw an exception)… May 12, 2026 at 11:18 am
  • Editorial Team
    Editorial Team added an answer I've read through the jQuery source, and here's what I've… May 12, 2026 at 11:18 am
  • Editorial Team
    Editorial Team added an answer The naive way to implement stock price movements is to… May 12, 2026 at 11:18 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.