Originally posted by divinatum
(whats a relative path..)
A path that specifies the location of a file or directory in terms of (i.e. "relative to" where you are now.)
"C:\program files\Apache Group\Apache\htdocs\" is an absolute path. This Is Where The File Is. (It's full name and lineage - its pedigree, or whakapapa, if you will).
"..\elsewhere\bar.txt" is a relative path. It doesn't mean anything without know where you are to start with. In your case, it's the location of the script. If that's in C:\program files\Apache Group\Apache\htdocs\, then "..\elsewhere\bar.txt" is up one level (to C:\program files\Apache Group\Apache\") and back down again to C:\program files\Apache Group\Apache\elsewhere\, which is where bar.txt should be found. In general, ".." moves you up one level closer to the root ("C:") and then you go back down again until you get to the directory you want.
I'm guessing your font files are in c:\windows\fonts. If you don't want to copy the relevant font files over to the same directory as your scripts - the relative-path way of saying "the same directory" is just . - then
C:\program files\Apache Group\Apache\htdocs\
We need to go up four levels to get back to the root, then go down again through "windows" and "fonts".
So the relative path is
........\windows\fonts\
I sometimes work like this. Take the full pathname of the current directory and tack the relative path on the end. Each ..\ gobbles up one directory to its left and destroys itself in the process.
C:\program files\Apache Group\Apache\htdocs\..\..\..\..\windows\fonts\
C:\program files\Apache Group\Apache\..\..\..\windows\fonts\
C:\program files\Apache Group\..\..\windows\fonts\
C:\program files\..\windows\fonts\
C:\windows\fonts\
which is indeed where we should have ended up.
For more information consult the help files that came with Windows, or do a search on the Web for tutorials on how to use files and directories.
Now there's a startling lacuna. Probably brought about by excessive reliance on WIMP interfaces...