Jump to content

Archived

This topic is now archived and is closed to further replies.

lordvader

what is ./ ?

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Using the "./" guarrentees that you start at the current directory.

Ken

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.