in reply to (Semi-OT) Win32 Apache & ActiveState vs. All Cygwin

I have to code it twice - my webhost runs Red Hat 7.1, so I have to change file paths, etc.

That way lies madness...

Have you considered having a config file of some kind that encapsulates the differences between the two servers and then reading in those server-dependent values rather than coding them into the script?

It's a small nuisance to set up and a big time and sanity saver in the long run.
 

  • Comment on Re: (Semi-OT) Win32 Apache & ActiveState vs. All Cygwin

Replies are listed 'Best First'.
Re: Re: (Semi-OT) Win32 Apache & ActiveState vs. All Cygwin
by trs80 (Priest) on Jan 26, 2002 at 03:17 UTC
    I agree with dvergin. You also might want to consider using %ENV values, for the most part everything you want about the server configuration can be gotten from there as far as paths. Custom paths for your application should be in a conf file of some kind.