Jump to content


Photo

what is ./ ?


  • Please log in to reply
3 replies to this topic

#1 lordvader

lordvader
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 27 September 2006 - 04:58 AM

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

#2 warewolfe

warewolfe
  • Members
  • PipPipPip
  • Advanced Member
  • 57 posts
  • LocationOtago, NZ

Posted 27 September 2006 - 05:00 AM

Hej

if 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


#3 lordvader

lordvader
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts

Posted 27 September 2006 - 05:12 AM

thanks wolf

#4 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 27 September 2006 - 05:12 AM

Using the "./" guarrentees that you start at the current directory.

Ken




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users