Windows Vs. Linux Path

From: Date: Fri, 27 Oct 2000 06:55:14 +0000
Subject: Windows Vs. Linux Path
Groups: php.windows 
Request: Send a blank email to php-windows+get-3547@lists.php.net to get a copy of this message
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

« previous php.windows (#3547) next »