Re: Porting from Linux to Windows!?$#

From: Date: Mon, 28 Jan 2002 01:57:44 +0000
Subject: Re: Porting from Linux to Windows!?$#
References: 1  Groups: php.install php.windows 
Request: Send a blank email to php-install+get-5779@lists.php.net to get a copy of this message
Parts of directories ~may~ be separated by / on Windows, so that alleviates one problem (at least it works for me on NT4(SP5), Apache & PHP4). Multiple paths are separated by ":" on *nix and ";" on Windows, an easy check to make. For example: $sep = strcasecmp(substr(PHP_OS, 0, 3), "win") ? ":" : ";"; $paths = array($path1, $path2); ini_set("include_path", implode($sep, $paths)); I'm afraid I can't think of easy way of doing this throughout your code - perhaps any *nix AWK gurus could come up with a script... :) Andre Amaral <andre@experttek.com> wrote in message news:20020127175300.62601.qmail@pb1.pair.com... > Hi all, > > I would like to ask my experienced friends here if its possible to port a > script made for linux to run in windows IIS. I've been trying to make linux > scripts run on my server and some of them do and some don't. I also notice > that the problem relies how Linux and Windows refer to firectories. > > Linux Ex. > $base_dir = "/home/somescript/" > > Windows Ex. > $base_dir = "C:\home\somescript" > > Now. My question is... Is there any way to use script made for Linux in > Windows? If YES what have to be done in order to make it to work? > > Thank you, > Andre > > > > >

« previous php.install (#5779) next »