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 <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
>
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to