Re: Windows Vs. Linux Path
| From: | Frank M. Kromann | Date: | Fri, 27 Oct 2000 15:29:48 +0000 |
| Subject: | Re: Windows Vs. Linux Path | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3560@lists.php.net to get a copy of this message | ||
Hi,
If your Win32 is NT/2000 you can use / inthe path. If your Win32 is 95/98 you have to use \ (\\ when
you are writing the script).
- Frank
>I have a script. That needs to be able to exec() a program But the problem is that this program
>is in a sub directory. I am having a major problem figuring out how to detect if the script is
>running on win32 php or linux php if its running win32 the path needs to be like c:\whatever\what
>vs Linux /local/usr/bin/whatever.
>
>Anyone have an easy way to detect the Os a script is running from short of setting a varable in
>one of the include files for the user to set $os="win" vs $os="linux". I need a
>way of knowing if i should be doing a \ or a / in the path.
>
>Thanks
>
>kill-9
>