lordvader Posted September 27, 2006 Share Posted September 27, 2006 hi,I don't what it's called, so I couln't look it up on phpnet, but sometimes a dot forward slash appears in my example problems that are referring to a file location.For instance, i'm learning how to do file ops, and fopen('./foldername/file.ext', 'a') was an example...What is that ./ supposed to indicate? server root? the next folder up?Thanks Quote Link to comment Share on other sites More sharing options...
warewolfe Posted September 27, 2006 Share Posted September 27, 2006 Hejif it was ../ it would mean to go back one directory then up another directory branch.as it is ./ it would mean stay in the directory you are in now and then go up a named branch. (In Windows that is.)WW Quote Link to comment Share on other sites More sharing options...
lordvader Posted September 27, 2006 Author Share Posted September 27, 2006 thanks wolf Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted September 27, 2006 Share Posted September 27, 2006 Using the "./" guarrentees that you start at the current directory.Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.