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 7940109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:17:26+00:00 2026-06-03T23:17:26+00:00

We have web developers on both Windows and Linux using SVN. Some PHP files

  • 0

We have web developers on both Windows and Linux using SVN. Some PHP files reference a local path (e.g. Smarty/Geolocation libraries) and hence are different on their respective platforms. We need to keep these files under revision but the developers are starting to just add the svn:ignore attribute on these specific files to prevent conflicts. The only solution I can come up with is to put some code to determine which OS is being run but this seems like bloat for production code.

if (PHP_OS == "WIN32" || PHP_OS == "WINNT") {
        define('SMARTY_DIR', 'c:/xampp/smarty/');
    } else { 
        define('SMARTY_DIR', '/usr/local/lib/php/Smarty/');
    }

I’d love to hear how others have solved this problem.

  • 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. Editorial Team
    Editorial Team
    2026-06-03T23:17:27+00:00Added an answer on June 3, 2026 at 11:17 pm

    The typical way to do this is with a config.php.template file. The template file is version controlled and developers will copy it to config.php for their local settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a web developer, have worked with PHP and .NET both. having over
As a web developer I am using PHP and I know that I have
I have developed a Web and windows application, both in C#.NET. Now, what I
Some Background We have a team of four developers and we have two web
I have a simple web service that has an API third party developers are
I am working on a web site with several other developers and we have
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
I am developing a web form using Visual Web Developer Currently I have class
I've been developing Microsoft Windows based applications (both desktop and web) for several years
I've been doing some web development work in PHP recently which has led me

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.