i'm writing a script with lines like that
$nav_file=getcwd() . "/$nav_link";
it's ok on linux hostings but i guess that on windows
the path returned by getcwd will be something like c:\something\bla\bla
and when i add '/$nav_link'
it will be
c:\something\bla\bla/morebla
i was just going to make a variable $slash where the user sets '/' or '\' (depending on the OS he will use the script on)
and to replace all '/' below in the script with this $slash variable
but before making all this, decided to make sure by asking here that this is the correct way to go?