grahamgr3 Posted October 20, 2014 Share Posted October 20, 2014 In this book in chapter 2 script 2.4 index.php. It says to include the configuration file: require('./includes/config.inc.php'); How can you reference a file with ./, shouldn't it be ../ I tried it and it doesn't work. Is this a mistake in the book? Link to comment Share on other sites More sharing options...
Larry Posted October 20, 2014 Share Posted October 20, 2014 Not a mistake, those have two different meanings. A single period starts in the current directory, so ./file is the same as just file. Two periods say you should go up one directory, so ../ means to head into the parent directory of the current one. If one works for you and the other doesn't, your file structure is just different than that in the book. Link to comment Share on other sites More sharing options...
Recommended Posts