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.
| [reply] |
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.
| [reply] |
I haven't had any experience with Cygwin, but Apache does have a site on using Cygwin with Apache here. You may want to take a look at it.
- Moon | [reply] |