More about Directories.
Moderator: General Moderators
More about Directories.
The opendir() function has an argument which should be the directory in which you want to open. What I want to know is, what's a directory consist of?
For example, my understanding of a directory was always: http://www.google.com, file:///C:/My Documents/, etc. But when I come across this function, it's demanding something like: /home/www/whatever.com/, and such.
So what I want to understand is this: /home/www/whatever.com/. I would like to know what makes a directory in this case???
Thanks for reading.
For example, my understanding of a directory was always: http://www.google.com, file:///C:/My Documents/, etc. But when I come across this function, it's demanding something like: /home/www/whatever.com/, and such.
So what I want to understand is this: /home/www/whatever.com/. I would like to know what makes a directory in this case???
Thanks for reading.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Neither of your first two examples are directories, but URLs. The first being an internet site and the second being a directive to your local file system.
A directory, or folder as Windows (and some Macs) call them, is a container. Differing operating systems use differing marks to distinguish between directories and files. For instance, some use "/", while others use "\" a few even use ":". They are just a means to storing data in a structured way as we like our structure, while the computer doesn't really care too much.
C:\Windows is a directory (or folder) for example.
A directory, or folder as Windows (and some Macs) call them, is a container. Differing operating systems use differing marks to distinguish between directories and files. For instance, some use "/", while others use "\" a few even use ":". They are just a means to storing data in a structured way as we like our structure, while the computer doesn't really care too much.
C:\Windows is a directory (or folder) for example.
That I don't understand. But what I do understand now, is that my question has evolved into:There are some common directories used on various flavors of *nix, but in general you don't need to worry about them.
How do I access another directory? e.g. Use the opendir() function and apply an directory from another server as it's argument.