sketchfly Posted August 13, 2007 Share Posted August 13, 2007 When attempting to access my php bible database I get Sorry, can't find Book "bible.php". http://www.statementoffaith.org/bible.php I believe 7 lines down "Where the script lives on the disk" is wrong. Though this is the path online where the Bible folder is that holds the bible books. Also, I noticed the individual book info inside the Bible folder does not contain file extensions. Is this common? Thanks. $config["URI_prefix"] = "http://pawlowskifamily.net/bible/"; //Where the script lives on the web. $config["script_suffix"] = "bible.php/"; //The name of the main script. (It may seem strange that this should end in a '/', but that is indeed the case.) $config["local_prefix"] = "/htdocs/bible/"; //Where the script lives on the disk. $config["bible_midfix"] = "/statementoffaith.org/bible/"; //The directory that the bible data is in. ($config["local_prefix"] . $config["bible_midfix"]) $config["themes_midfix"] = "themes/"; //The directory that the bible data is in. ($config["local_prefix"] . $config["bible_midfix"]) Quote Link to comment https://forums.phpfreaks.com/topic/64738-local-path-question/ Share on other sites More sharing options...
Gho§t Posted August 13, 2007 Share Posted August 13, 2007 Perhaps not all of them should begin with a slash. Because if I understand correctly, you are combining some of these values later on in the script. So you might end up with something like: /htdocs/bible//statementoffaith.org/bible/themes/ So, either take the slash off of the end of //Where the script lives on the disk or take the slash off the beginning of //The directory that the bible data is in. Oh, and you should put that code in tags Quote Link to comment https://forums.phpfreaks.com/topic/64738-local-path-question/#findComment-322856 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.