Errrr. One thing you CAN do is to put something not unlike this: <?php set_include_path("/production/server/path" . PATH_SEPARATOR . "C:\\dev\\path\\here"); ?> Your dev server will be slightly "slower" when it attempts to find the include files in a path that does not exist. Your production server will find the files where they belong and bail out before it tries to find a C drive that has no meaning. Crude, but effective. Or you could just install Linux on your dev box and dual boot, which is WAY easier. :-) On Tue, July 17, 2007 7:08 am, Steve Perkins wrote: > Talking about .htaccess, anyone know an easy way of configuring os > (generally linux/windows) alternative settings in the same .htaccess ? > Mainly for paths (eg: include_path), so I can just upload a whole > directory > at a time from my (Windows) development machine to a (Linux) > production > server without having to worry about different .htaccess files for > each. > > Ta > Steve > > -----Original Message----- > From: Richard Heyes [mailto:richardh@xxxxxxxxxxx] > Sent: 17 July 2007 12:25 > To: Phil Princely > Cc: php-general@xxxxxxxxxxxxx > Subject: Re: magic quotes > >> What do people on this list usually do with this kind of problem. To >> me, the .htaccess seems the easiest solution, since I don't have to >> change any scripts. > > Use a .htaccess file, or if performance is any sort of concern, put it > in > the server configuration files and turn off .htaccess files. > > Failing that you could do it in the script with your > stripslashes_array() function, but you should only do it when you need > to. > eg. There's no point using it on $_COOKIE if you're not using > $_COOKIE. > > -- > Richard Heyes > +44 (0)844 801 1072 > http://www.websupportsolutions.co.uk > > Knowledge Base and HelpDesk software > that can cut the cost of online support > > -- > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: > http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php