You are viewing an old revision of this page.
Not a directory
- You are trying to do something to a file where a directory would be expected. eg
- chdir("/etc/motd");
- This more frequently (and confusingly) occurs when you are refering to a file, where you would expect a file to work, but the directory path is wrong, eg
- fopen("/etc/motd/foo","r");
because "/etc/motd" is a file, not a directory, and therefore can't "contain" "/foo".